Design and Implementation of IoT-Based Soil Moisture Monitoring and Automatic Irrigation System Using ESP32
Keywords:
Internet of Things, ESP32, Automatic Irrigation, soil moisture monitoring, real-time monitoringAbstract
Proper soil moisture management plays an essential role in supporting plant growth and improving water-use efficiency. Manual irrigation is still widely practiced and often ignores the actual soil moisture condition, leading to either excessive or insufficient watering. This study aims to design and implement an Internet of Things (IoT)-based soil moisture monitoring and automatic water pump control system using the ESP32 microcontroller. The research employed a Research and Development (R&D) approach through prototype development, including literature review, system requirement analysis, hardware and software design, system implementation, sensor calibration, and performance evaluation. The proposed system integrates a capacitive soil moisture sensor, relay module, 12 V DC water pump, and the Blynk platform for real-time monitoring. A hysteresis control strategy was implemented by setting the lower and upper soil moisture thresholds at 40% and 60%, respectively, to improve pump stability. Experimental results demonstrated that the developed system achieved an average sensor error of 3.42%, an average response time of 2.14 seconds, and maintained soil moisture within the range of 50.9%–54.2% during a seven-day evaluation period. Furthermore, the system reduced water consumption by 31.6% compared with conventional manual irrigation. These findings indicate that the proposed IoT-based system is capable of providing reliable real-time soil moisture monitoring and efficient automatic irrigation, making it suitable for potted plants, home gardens, and small-scale greenhouse applications.
References
Adeyemi, O., Grove, I., Peets, S., Domun, Y., & Norton, T. (2018). Dynamic neural network modelling of soil moisture content for predictive irrigation scheduling. Sensors, 18(10), 3408. https://doi.org/10.3390/s18103408
Afifah, I. N. (2026). An IoT-based real-time soil moisture monitoring system for smart agriculture using ESP32. Journal of Smart Agriculture Technology, 1(1), 49–56.
Aisyah, N., Ulhaq, E. D., Dharmawan, A., & Purbakawaca, R. (2025). Design of an IoT-based smart irrigation system using soil moisture sensor and ESP32. International Journal of Advanced Computer Science and Applications, 11(1), 89–97.
Ardianto, A. F., Rahmasari, E. S., & Pratama, A. P. (2025). Smart irrigation system berbasis IoT dengan sensor soil moisture dan DHT22 menggunakan sumber daya terbarukan. Jurnal Teknologi Informasi dan Komputer, 8(3), 500–511.
Farooq, M. S., Riaz, S., Abid, A., Umer, T., & Zikria, Y. B. (2019). Role of IoT technology in agriculture: A systematic literature review. Electronics, 8(3), 319. https://doi.org/10.3390/electronics8030319
Gong, X., Xu, Y., Li, H., Chen, X., & Song, Z. (2022). Antioxidant activation, cell wall reinforcement, and reactive oxygen species regulation promote resistance to waterlogging stress in hot pepper (Capsicum annuum L.). BMC Plant Biology, 22, 507. https://doi.org/10.1186/s12870-022-03807-2
Jawad, H. M., Nordin, R., Gharghan, S. K., Jawad, A. M., & Ismail, M. (2017). Energy-efficient wireless sensor networks for precision agriculture: A review. Sensors, 17(8), 1781. https://doi.org/10.3390/s17081781
Kamienski, C., Soininen, J. P., Taumberger, M., Dantas, R., Toscano, A., Cinotti, T., & Filev, M. (2019). Smart water management platform: IoT-based precision irrigation for agriculture. Sensors, 19(2), 276. https://doi.org/10.3390/s19020276
Kim, Y., Evans, R. G., & Iversen, W. M. (2008). Remote sensing and control of an irrigation system using a distributed wireless sensor network. IEEE Transactions on Instrumentation and Measurement, 57(7), 1379–1387.
Ojha, T., Misra, S., & Raghuwanshi, N. S. (2015). Wireless sensor networks for agriculture: The state-of-the-art in practice and future challenges. Computers and Electronics in Agriculture, 118, 66–84.
Purnama, N. A., Rahman, A., Putra, M. R., & Hidayat, T. (2024). IoT-based irrigation control system with ESP32 for sustainable agriculture. Journal of Agricultural Informatics, 15(2), 101–112.
Sirait, F. S., & Aprilia, L. (2020). Analisis neraca air dan kebutuhan air tanaman jagung (Zea mays L.) berdasarkan fase pertumbuhan di Kota Tarakan. Jurnal Pertanian Tropik, 13(1), 1–12.
Sutono, S., & Mohamed, Y. H. (2025). IoT-based smart agriculture system using ESP32, DHT22, and soil moisture sensors with relay control. International Journal of Smart Computing and Engineering, 6(2), 115–126.
Wijaya, F. C., Puriyanto, R. D., & Author, C. (2023). Moisture measurement growing media and automatic watering mini greenhouse growing media for microgreen. Journal of Smart Agriculture, 1(1), 36–44. https://doi.org/10.21107/jsa.v1i1.9
Zhang, C., & Kovacs, J. M. (2012). The application of small unmanned aerial systems for precision agriculture: A review. Precision Agriculture, 13(6), 693–712.





