Design of Automatic Honeybee Hive Control Based on Temperature and Humidity Using Mamdani Fuzzy Logic
DOI:
https://doi.org/10.62535/ws471d24Keywords:
honey bee hive, temperature, humidity, fan speedAbstract
Temperature and humidity are important factors in maintaining the microclimate of honey bee hives. This study aims to design an automatic ventilation control system based on temperature and humidity using Mamdani fuzzy logic. The system uses a DHT22 sensor as input, an ESP32 as the processing unit, and a DC exhaust fan as the actuator with a PWM output. The fuzzy design covers the determination of fuzzy sets, fuzzification, rule formation, implication, composition, and defuzzification using the Centroid method. Testing was carried out through manual calculation, MATLAB Fuzzy Logic Designer simulation, and hardware simulation using Wokwi. In the test scenario with a temperature of 34.4 °C and a humidity of 61.2%, a fan speed output of 44.6% PWM was obtained. These results show that the system can determine fan speed based on the combination of temperature and humidity conditions. Thus, the Mamdani fuzzy design can be used as an automatic ventilation control approach for honey bee hives.
References
Adi, Y. N., Suwarno, I., Widyasmoro, W., Raharja, N. M., Alkarim, M. H., & Maarif, A. (2026). Temperature and Humidity Control System for Quail Cages Based on Fuzzy Logic. Journal of Engineering and Sustainable Development, 30(5), 628–638. https://doi.org/10.31272/jeasd.3985
Alburaki, M., & Garnery, L. (2024). Effects of Landscape Variation on Thermoregulation and Performance in Apis Mellifera Honey Bee Colonies: Insights from mtDNA Haplotypes. Journal of Apicultural Research, 63(5), 1075–1084. https://doi.org/10.1080/00218839.2024.2380936
Basirun, A. R., Anggraini, V., & Al-Kautsar, M. N. (2024). Smart Monitoring System Pada Pembudidayaan Jamur Tiram Menggunakan Metode Fuzzy Logic. Jurnal TRINISTIK: Jurnal Teknik Industri, Bisnis Digital, Dan Teknik Logistik, 3(1), 39–45. https://doi.org/10.20895/trinistik.v3i1.1333
Budiarto, S. P., Sumitro, A. H., & Taufiq, M. (2024). Intelligent System Design for Oyster Mushroom Cultivation Using Mamdani Fuzzy Inference with Internet of Things (IoT). International Journal of Engineering Continuity, 3(2), 86–106. https://doi.org/10.58291/ijec.v3i2.301
Carrasco-Garrido, C., Moreno-Cabezali, B. M., & Raya, A. M. (2025). New Perspectives on University Quality Assessment: A Mamdani Fuzzy Inference System approach. PLoS ONE, 20(5 May), 1–21. https://doi.org/10.1371/journal.pone.0321013
Cook, D., Blackler, A., Mcgree, J., & Hauxwell, C. (2021). Thermal Impacts of Apicultural Practice and Products on the Honey Bee Colony. Journal of Economic Entomology, 114(2), 538–546. https://doi.org/10.1093/jee/toab023
Fatkhurrozi, B., & Setiawan, H. T. (2024). Implementasi Logika Fuzzy pada Sistem Kendali Suhu dan Kelembaban Udara Ruangan Pengering Biji Kopi Berbasis Mikrokontroller. Journal of Telecommunication Electronics and Control Engineering (JTECE), 6(1), 50–59. https://doi.org/10.20895/jtece.v6i1.1319
Hidayat, A. P., Santosa, S. H., Siskandar, R., & Baskoro, R. G. (2021). Evaluation of Chicken Eggs Supply With Fuzzy AHP Approach Through Development of Safea Software. Jurnal Logistik Indonesia, 5(2), 104–110. https://doi.org/10.31334/logistik.v5i2.1881
Ismarnita, W., & Respitawulan. (2023). Penerapan Logika Fuzzy dalam Menentukan Tingkat Kerawanan Longsor di Suatu Wilayah. Jurnal Riset Matematika, 3(1), 45–54. https://doi.org/10.29313/jrm.v3i1.1737
Kutby, R., Baer-Imhoof, B., Robinson, S., Porter, L., & Baer, B. (2024). The Effect of Hive Type on Colony Homeostasis and Performance in the Honey Bee (Apis mellifera). Insects , 15(10), 1–16. https://doi.org/10.3390/insects15100800
Mauluddin, A. R., Irawan, D., & Gresik, M. (2026). Rancang Bangun Sistem Monitoring dan Kontrol Kualitas Udara dalam Ruangan Berbasis IOT Menggunakan Metode Fuzzy Logic Mamdani. Journal of Information Technology and Computer Science, 9(2), 259–268. https://doi.org/10.31539/38z8en10
Meikle, W. G., Barg, A., & Weiss, M. (2022). Honey Bee Colonies Maintain CO2 and Temperature Regimes in Spite of Change in Hive Ventilation Characteristics. Apidologie, 53(5), 1–13. https://doi.org/10.1007/s13592-022-00954-1
Mindara, G. P., Sholihah, W., Novianty, I., Fathonah, L., Marcelita, F., Siskandar, R., … Firdaus, N. R. (2025). Calibration of Dissolved Oxygen Sensors in IoT Systems for Water Quality Monitoring in Aquaculture. SPEKTRA: Jurnal Fisika Dan Aplikasinya, 10(3), 215–230. https://doi.org/10.21009/SPEKTRA
Mufidati, D., Bahrul Ulum, D., Mukhlis, M., Kiai Haji Achmad Siddiq Jember, U., Mataram No, J., & Kaliwates Jember, M. (2022). Penerapan Logika Fuzzy dalam Menentukan Dampak Ekonomi di Daerah Red-zone Akibat Pandemic Covid-19. ARITMATIKA: Jurnal Riset Pendidikan Matematika, 3(1), 1–14. https://doi.org/10.35719/aritmatika.v3i1.60
Nadia Putri, Lindawati, & Aryanti. (2024). Implementasi dan Perbandingan Performa Algoritma Fuzzy Tsukamoto dan Mamdani pada Sistem Exhaust Fan Berbasis IoT. Journal Tech-E, 8(1), 24–35. https://doi.org/10.31253/te.v8i1.3169
Ntawuzumunsi, E., Kumaran, S., & Sibomana, L. (2021). Self-powered Smart Beehive Monitoring and Control System (SBMaCS). Sensors, 21(10), 1–25. https://doi.org/10.3390/s21103522
Peters, J. M., Peleg, O., & Mahadevan, L. (2019). Collective Ventilation in Honeybee Nests. Journal of the Royal Society Interface, 16(150), 1–8. https://doi.org/10.1098/rsif.2018.0561
Purnama, D., & Setiono, I. H. (2026). Metode Fuzzy Mamdani untuk Pemetaan Risiko DBD Berdasarkan Data Kasus dan Kepadatan Penduduk di Gunungkidul. CESS (Journal of Computer Engineering, System and Science), 11(1), 97–112. https://doi.org/10.24114/cess.v11i1.71620
Rasya, R. H., Hardianto, J., & Siskandar, R. (2020). Rancang Bangun Sistem Monitoring Kualitas Air Bersih Pada Konsumen PERUMDA Tirta Pakuan Bogor Berbasis Web. Indonesian Journal of Science, 1(3), 113–121. https://doi.org/10.59897/jsi.v1i3.17
Santosa, S. H., Hidayat, A. P., & Siskandar, R. (2021). SAFEA Application Design on Determining The Optimal Order Quantity of Chicken Eggs Based on Fuzzy Logic. IAES International Journal of Artificial Intelligence, 10(4), 858–871. https://doi.org/10.11591/ijai.v10.i4.pp858-871
Santosa, S. H., Hidayat, A. P., & Siskandar, R. (2022). Raw material Planning for Tapioca Flour Production Based on Fuzzy Logic Approach: A Case Study. Jurnal Sistem Dan Manajemen Industri, 6(1), 67–76. https://doi.org/10.30656/jsmi.v6i1.4594
Sihombing, F. A. (2024). Kajian Fuzzy Metode Mamdani dan Fuzzy Metode Sugeno serta Implementasinya. INNOVATIVE: Journal Of Social Science Research, 4(4), 4940–4955. https://doi.org/10.31004/innovative.v4i4.13108
Siskandar, R., Mandang, T., Hermawan, W., & Irzaman, I. (2023). Engineering of Information Monitoring System Sensor Reading Data Based on Smart Wireless using NVDIA Jetson Nano and Arduino Mega on Agricultural Spraying Machines. Jurnal Teknik Pertanian Lampung (Journal of Agricultural Engineering), 12(4), 921. https://doi.org/10.23960/jtep-l.v12i4.921-936
Siskandar, R., Mandang, T., Hermawan, W., & Irzaman, I. (2025). Rice Farming Applicator Robot Control System Based on Radio Wave Communication Using Flysky Fs-iA6 Type Remote Control and Arduino Mega. Jurnal Teknik Pertanian Lampung (Journal of Agricultural Engineering), 14(5), 1948–1961. https://doi.org/10.23960/jtepl.v14i5.1948-1961
Siskandar, R., Santosa, S. H., Wiyoto, W., Kusumah, B. R., & Hidayat, A. P. (2022). Control and Automation: Insmoaf (Integrated Smart Modern Agriculture and Fisheries) on The Greenhouse Model. Jurnal Ilmu Pertanian Indonesia, 27(1), 141–152. https://doi.org/10.18343/jipi.27.1.141
Stabentheiner, A., Kovac, H., Mandl, M., & Käfer, H. (2021). Coping with The Cold and Fighting The Heat: Thermal Homeostasis of A Superorganism, The Honeybee Colony. Journal of Comparative Physiology A: Neuroethology, Sensory, Neural, and Behavioral Physiology, 207(3), 337–351. https://doi.org/10.1007/s00359-021-01464-8
Varshney, A. K., & Torra, V. (2023). Literature Review of the Recent Trends and Applications in Various Fuzzy Rule-Based Systems. International Journal of Fuzzy Systems, 25(6), 2163–2186. https://doi.org/10.1007/s40815-023-01534-w
Wardhany, V. A., Hidayat, A., & Subono. (2021). IoT System Terpadu untuk Pengelolaan Sarang Lebah. JURNAL ELTEK, 19(1), 9–17. https://doi.org/10.33795/eltek.v19i1.277
Rahman, A., Afrinasari, P., Azzahra, H., Adawwiyah, R., Angraini, S., Amanda, N., … Madela, Y. (2025). Fuzzy Logic (1st ed., Vol. 1; W. Yuliani, Ed.). Padang: CV Luminary Press Indonesia.
Prayudha Hidayat, A., Wiyoto, W., Pratama, A. J., Vibowo, H., Santosa, S. H., & Siskandar, R. (2023). Fuzzy Analytical Hierarchy Process (AHP) Model for Chicken Egg Supply and Demand Management Strategies Through SAFCES Application Development. E3S Web of Conferences, 454, 1–10. EDP Sciences. https://doi.org/10.1051/e3sconf/202345403004
