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.
Copyrights © 2026