Greenhouses play a crucial role in maintaining optimal environmental conditions for tropical tomato cultivation. However, temperature fluctuations in tropical climates often reduce crop quality and productivity. This study aims to design an automatic temperature control system based on the ESP32 microcontroller using the Mamdani fuzzy logic method to maintain stability within the optimal range of 25–30°C. The system employs a DHT11 sensor for temperature measurement, a relay to control the heater, and an L298N motor driver to regulate the cooling fan. Temperature data are displayed on a TFT screen and transmitted via Wi-Fi to the Blynk application for real-time remote monitoring. Experimental results show that the system maintained temperature stability with an average deviation of –0.8°C from the 30°C setpoint and response times ranging from 5 to 109 seconds. The fuzzy logic algorithm successfully adjusted fan speed (50–225 PWM) and heater status adaptively, making the system more efficient than conventional fixed setpoint control. Furthermore, wireless communication through Blynk demonstrated low latency (<6 seconds) and accurate data synchronization. Therefore, this system can improve energy efficiency, reduce manual supervision, and support optimal growth of tropical tomato plants in greenhouses
Copyrights © 2026