Fuzzy Logic–Based Greenhouse Temperature Control for Tropical Tomatoes Using ESP32

Authors

  • Arthoriq Daffa Oliyan Department of Electrical Engineering, Universitas Negeri Padang, Indonesia Author
  • Dwiprima Elvanny Myori Department of Electrical Engineering, Universitas Negeri Padang, Indonesia Author

DOI:

https://doi.org/10.24036/heyygt41

Keywords:

Greenhouse automation , ESP32 , Fuzzy logic, Temperature control , Tropical tomato

Abstract

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

Downloads

Download data is not yet available.

References

[1] I. Ullah, M. Fayaz, M. Aman and D. Kim, "Toward Autonomous Farming—A Novel Scheme Based on Learning to Prediction and Optimization for Smart Greenhouse Environment Control," IEEE Internet of Things Journal, vol. 9, no. 24, pp. 25300-25323, 15 Dec.15, 2022, doi: 10.1109/JIOT.2022.3196053

[2] M. E. Firmansyah, M. Muskhir, R. Mukhaiyar, and M. Yuhendri, “Electronic devices monitoring water pH , humidity and temperature controllers in Agro-Hydroponic Business,” J. Ind. Autom. Electr. Eng., vol. 02, no. 01, pp. 59–65, 2025.

[3] R. Hidayat and H. Supriyono, “Evaluasi Kinerja Sistem Monitoring Greenhouse Konvensional terhadap Pertumbuhan Tanaman Hortikultura,” Jurnal Ilmu Pertanian Indonesia, vol. 12, no. 3, pp. 187–201, 2023.

[4] A. Rahman, B. Sutrisno, and C. Wibowo, “Analisis Efektivitas Sistem Kendali Konvensional pada Greenhouse,” Jurnal Teknik Pertanian, vol. 7, no. 1, pp. 45–59, 2018.

[5] R. Hidayat, “Pemanfaatan Teknologi Wireless dalam Pemantauan dan Pengendalian Greenhouse Modern,” Jurnal Informatika Pertanian, vol. 7, no. 2, pp. 112–125, 2020.

[6] M. Yuhendri, E. Mirshad, and A. R. Sidiqi, “Real-time Control of Separately Excited DC Motor Based on Fuzzy PI System Using Arduino,” Przegląd Elektrotechniczny, vol. 2024, no. 10, pp. 123–127, 2024, doi: 10.15199/48.2024.10.22.

[7] A. Kurniawan and B. Santosa, “Real-time Monitoring System for Greenhouse Parameters using Integrated Sensor Networks,” Jurnal Teknik Elektro, vol. 14, no. 2, pp. 156–169, 2022.

[8] M. S. Farooq, S. Riaz, M. A. Helou, F. S. Khan, A. Abid and A. Alvi, "Internet of Things in Greenhouse Agriculture: A Survey on Enabling Technologies, Applications, and Protocols," IEEE Access, vol. 10, pp. 53374-53397, 2022, doi: 10.1109/ACCESS.2022.3166634..

[9] R. Imamguluyev, S. Maharramova and T. Abdullayev, "Smart Greenhouse Illumination: Fuzzy Logic Control through IoT Integration," 2024 5th International Conference on Mobile Computing and Sustainable Informatics (ICMCSI), Lalitpur, Nepal, 2024, pp. 735-741, doi: 10.1109/ICMCSI61536.2024.00114.

[10] F. Hahn, “Fuzzy Controller Decreases Tomato Cracking in Greenhouses,” Computers and Electronics in Agriculture, vol. 77, no. 1, pp. 21–27, 2011.

[11] Y. A. Putra and M. Yuhendri, “Smart Monitoring Pompa Air Otomatis Berbasis Human Machine Interface Dan Internet of Things,” JTEIN J. Tek. Elektro Indones., vol. 4, no. 2, pp. 863–876, 2023..

[12] M. Rezky and M. Yuhendri, “Argometer Becak Motor Berbasis Android,” JTEV (Jurnal Teknik Elektro dan Vokasional), vol. 6, no. 1, p. 158, 2020, doi: 10.24036/jtev.v6i1.107925..

[13] M. Yuhendri, A. Aswardi, and A. Ahyanuardi, “Implementasi Pompa Air Tenaga Surya Menggunakan Inverter Boost Satu Fasa,” INVOTEK J. Inov. Vokasional dan Teknol., vol. 20, no. 3, pp. 1–10, 2020, doi: 10.24036/invotek.v20i3.813.

[14] M. Sushmitha, V. Jyothi and A. V. Sain, “Implementation of Greenhouse Control and Monitoring System Using ESP32,” 2022 IEEE International Conference on Distributed Computing and Electrical Circuits and Electronics (ICDCECE), Ballari, India, 2022, pp. 1 - 4, doi: 10.1109/ICDCECE53908.2022.9792852.

[15] R. Imamguluyev, A. Hasanov and R. Mikayilova, “Enhancing Node Selection in Blockchain-Enabled Edge Internet of Things (IoT): A Fuzzy Logic Approach for Improved Performance,” 2023 7th International Conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC), Kirtipur, Nepal, 2023, pp. 37 - 41, doi: 10.1109/I-SMAC58438.2023.10290320.

Downloads

Published

2026-07-01

How to Cite

Fuzzy Logic–Based Greenhouse Temperature Control for Tropical Tomatoes Using ESP32. (2026). Journal of Industrial Automation and Electrical Engineering, 3(1), 70-76. https://doi.org/10.24036/heyygt41

Similar Articles

1-10 of 106

You may also start an advanced similarity search for this article.

Most read articles by the same author(s)