Temperature-Responsive DC Fan Control System Using ESP32 and DHT22 for Improved Energy Efficiency

Authors

  • Fauzia Nur Azmi Universitas Al-Azhar Indonesia Author
  • Muhammad Rafi Rizky Putra Universitas Al-Azhar Indonesia Author
  • Muhammad Ilham Darmanto Universitas Al-Azhar Indonesia Author
  • Gathan Warino Universitas Al-Azhar Indonesia Author
  • Putri Wulandari Universitas Binawan Author

DOI:

https://doi.org/10.46962/snte.25.063

Keywords:

ESP32, DHT22, PWM, Automatic Fan, Temperature Sensor, Microcontroller

Abstract

This paper presents the design and development of an automatic fan control system based on the ESP32 microcontroller and a DHT22 temperature sensor. The system is designed to automatically turn the fan on or off and adjust its speed using PWM signals, depending on the ambient temperature. The fan remains off when the temperature is below 21°C and operates at increasing speeds for temperatures above 21°C, with PWM values ranging from 90 to 255. The primary goal is to offer an energy-efficient solution that can effectively respond to changing environmental conditions. Compared to manual systems, this automatic system offers faster response times, reduces energy consumption, and eliminates the need for human intervention. Testing demonstrated a clear and consistent relationship between temperature and fan speed, confirming that the control logic functioning as intended. This system can be effectively implemented in small-scale cooling systems requiring responsive and efficient temperature regulation.

References

A. Budiyanto, G. B. Pramudita, and S. Adinandra, “Kontrol relay dan kecepatan kipas angin direct current (DC) dengan sensor temperature LM35 berbasis Internet of Things (IoT),” Techné: Jurnal Ilmiah Elektroteknika, vol. 19, no. 1, pp. 43–54, 2020. [Online]. Available: https://doi.org/10.31358/techne.v19i01.224

R. Septian and M. A. Syari, “Design and build automatic fan control based Internet of Things,” ResearchGate, 2024. [Online]. Available: https://www.researchgate.net/publication/385402726_Design_and_Build_Automatic_Fan_Control_Based_Internet_of_Things

IJARSCT, “Temperature based fan speed control using NodeMCU (ESP8266),” International Journal of Advanced Research in Science, Communication and Technology, vol. 3, no. 12, pp. 45–49, 2023. [Online]. Available: https://ijarsct.co.in/Paper10642.pdf

A. E. Akin-Ponnle, “An eco-friendly and low cost IoT-based room temperature control by fan speed regulation for tropical use,” ResearchGate, 2024. [Online]. Available: https://www.researchgate.net/publication/383451082_An_Eco-Friendly_and_Low_Cost_IoT_based_Room_Temperature_Control_by_Fan_Speed_Regulation_for_Tropical_Use

IJRPR, “IoT based fan speed control,” International Journal of Research Publication and Reviews, vol. 6, no. 5, pp. 11226–11228, 2025. [Online]. Available: https://ijrpr.com/uploads/V6ISSUE5/IJRPR46203.pdf

Circuit Digest, “ESP32 based smart temperature sensitive fan regulator,” Circuit Digest Projects, Feb. 2022. [Online]. Available: https://circuitdigest.com/microcontroller-projects/esp32-based-smart-temperature-sensitive-fan-regulator

P. W. Rusimamto, L. A. Endryansyah, and I. P. Indarto, “Implementation of Arduino Pro Mini and ESP32-CAM for temperature monitoring on automatic thermogun IoT-based,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 21, no. 3, pp. 1615–1622, 2021. [Online]. Available: https://doi.org/10.11591/ijeecs.v21.i3.pp1615-1622

E. Devmore, D. Shinde, and S. Patil, “ESP32 temperature control project with an emphasis on energy efficiency,” SSRN Electronic Journal, 2024. [Online]. Available: https://doi.org/10.2139/ssrn.4841107

A. M. Ilupeju, B. O. Adegoke, and A. Yakubu, “Temperature-dependent speed control device for an AC standing fan,” ResearchGate, 2023. [Online]. Available: https://www.researchgate.net/publication/382891377_Temperature-dependent_Speed_Control_Device_for_an_Ac_Standing_Fan

R. Pahlevi, “Room temperature monitoring and equalization system using sensors and fan,” in Proc. National Seminar on Information and Computer Technology, STMIK Piksi Ganesha, pp. 169–174, 2024. [Online]. Available: https://journal.piksi.ac.id/index.php/proceedings/article/view/1859

N. D. Setia, B. Suprianto, and R. P. Sari, “Perancangan sistem kendali exhaust fan berbasis IoT dengan sensor MQ-2 dan DHT22 untuk optimalisasi konsumsi energi,” Jurnal Teknik Elektro, vol. 14, no. 1, pp. 1–7, 2025. [Online]. Available: https://ejournal.unesa.ac.id/index.php/JTE/article/view/69025

B. Kanchanapalli, S. Banka, G. V. Bacchu, and P. R. Ganesh, “ESP32-based fan speed regulation system,” in Proc. 2024 Int. Conf. Sustainable Computing for Green and Secure Development (ICSGSD), pp. 1–5, 2024. [Online]. Available: https://doi.org/10.1109/ICSGSD60194.2024.10717499

G. M. Debele and X. Qian, “Automatic room temperature control system using Arduino Uno R3 and DHT11 sensor,” in Proc. 2020 Int. Conf. Wavelet Active Media Technology and Information Processing (ICWAMTIP), pp. 320–324, 2020. [Online]. Available: https://doi.org/10.1109/ICWAMTIP51612.2020.9317307

A. Jain, A. Sarkar, D. Ather, and D. Raj, “Temperature based automatic fan speed control system using Arduino,” in Proc. Advancement in Electronics & Communication Engineering 2022, SSRN Electronic Journal, 2022. [Online]. Available: https://doi.org/10.2139/ssrn.4159188

R. Aulia, R. A. Fauzan, and I. Lubis, “Pengendalian temperature ruangan menggunakan fan dan DHT11 berbasis Arduino,” CESS (Journal of Computer Engineering System and Science), vol. 6, no. 1, pp. 30–37, 2021. [Online]. Available: https://doi.org/10.24114/cess.v6i1.21113

G. C. Setyawan and L. J. Setyawan, “Model sistem pengering tenaga surya berbasis IoT dengan ESP32 dan DHT-11,” Progresif: Jurnal Ilmiah Komputer, vol. 21, no. 1, 2025. [Online]. Available: https://doi.org/10.35889/progresif.v21i1.2398

G. W. Pratomo, A. S. Puspaningrum, and I. Ismail, “Implementasi sistem otomatisasi sirkulasi udara menggunakan fan exhaust berbasis sensor DHT21 pada vertikal hidroponik,” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 5, no. 2, pp. 656–663, 2025. [Online]. Available: https://doi.org/10.57152/malcom.v5i2.1660

R. Irfani, A. A. Rahmanto, and M. E. Gazazanata, “Rancang bangun sistem exhaust fan otomatis berbasis sensor DHT11 dan mikrokontroler ESP32 untuk peningkatan kualitas udara di smoking area,” Jurnal ENGINE: Energi, Manufaktur, dan Material, vol. 9, no. 1, pp. 102–112, 2025. [Online]. Available: https://doi.org/10.30588/jeemm.v9i1.2161

M. Syafriza, D. Suherdi, and K. Sari, “Implementasi PWM pada sistem monitoring temperature dan kelembapan berbasis mikrokontroler,” Jurnal Sistem Komputer, vol. 3, no. 4, pp. 118–126, 2024. [Online]. Available: http://ojs.trigunadharma.ac.id/index.php/jskom/article/view/8916

T. I. Nasution and S. H. Sinaga, “Design of monitoring system temperature and humidity using DHT22 sensor and NRF24L01 based on Arduino,” Journal of Physics: Conference Series, vol. 2421, no. 1, pp. 1–6, 2023. [Online]. Available: https://doi.org/10.1088/1742-6596/2421/1/012018

A. Jain, A. Sarkar, D. Ather, and D. Raj, “Temperature based automatic fan speed control system using Arduino and DHT11 sensor,” Proc. Advancement in Electronics & Communication Engineering 2022, SSRN Electronic Journal, 2022. [Online]. Available: https://doi.org/10.2139/ssrn.4159188

P. R. Kalyani and S. Rajalakshmi, “Development of IoT based intelligent temperature control system using ESP32 and DHT22,” International Journal of Engineering and Advanced Technology (IJEAT), vol. 9, no. 2, pp. 113–116, 2019. [Online]. Available: https://www.ijeat.org/wp-content/uploads/papers/v9i2/B2167059219.pdf

S. Aggarwal and M. Verma, “Temperature based automatic fan speed control system using Arduino and LM35,” International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering, vol. 7, no. 5, pp. 2219–2224, 2018. [Online]. Available: https://doi.org/10.15662/IJAREEIE.2018.0705036

A. Sharma and S. K. Gupta, “Smart fan control using microcontroller with PWM technique,” International Journal of Scientific & Engineering Research (IJSER), vol. 10, no. 6, pp. 1381–1386, 2019. [Online]. Available: https://www.ijser.org/researchpaper/Smart-Fan-Control-Using-Microcontroller-with-PWM-Technique.pdf

J. W. Kim and Y. S. Park, “Energy-efficient fan control system using proportional control algorithms and ambient sensors,” IEEE Access, vol. 9, pp. 55033–55041, 2021. [Online]. Available: https://doi.org/10.1109/ACCESS.2021.3071743

Downloads

Published

2025-09-26

Issue

Section

Articles

How to Cite

Temperature-Responsive DC Fan Control System Using ESP32 and DHT22 for Improved Energy Efficiency. (2025). Seminar Nasional Teknik Elektro, 4(1), 9-18. https://doi.org/10.46962/snte.25.063