Agriculture plays a vital role in the economy, especially in developing countries where efficient water management is essential. Traditional irrigation methods often lead to excessive water usage, uneven distribution, and increased labor requirements. The IoT Based Automatic Soil Moisture Monitoring and Irrigation System aims to overcome these limitations by providing an intelligent and automated solution for irrigation control. The system continuously monitors soil moisture and controls a water pump via an IoT enabled microcontroller, logging data to a cloud platform and enabling remote monitoring and manual override through a mobile application. The methodology involves sensing soil moisture in real time, comparing it with a predefined threshold value, and automatically switching the irrigation pump ON or OFF. This closed loop system ensures optimal water usage, reduces human intervention, and enhances crop productivity. The proposed system is cost effective, energy efficient, and suitable for small scale as well as large scale agricultural applications.
Introduction
The text describes an IoT-based automatic soil moisture monitoring and irrigation system using ESP32 designed to improve water efficiency and reduce manual effort in agriculture.
It explains that traditional irrigation methods (manual checking or fixed schedules) are inefficient and often lead to water wastage or crop stress. The proposed system solves this by using real-time soil moisture sensing, edge computing, and automated pump control to irrigate only when needed.
At the core of the system is an ESP32 microcontroller, which reads soil moisture data from sensors, applies calibrated thresholds, and controls a water pump through a relay. The system also sends data to a cloud platform for real-time monitoring, historical analysis, and remote control via a mobile or web interface.
The literature review highlights that most IoT irrigation systems use microcontrollers like ESP32/ESP8266 with cloud platforms such as Firebase or Blynk. Key findings include:
Low-cost sensors are common but may suffer from accuracy and durability issues
Capacitive sensors are more reliable than resistive ones
Wi-Fi is suitable for small systems, while GSM and LoRa are used for larger or remote deployments
Threshold-based control is widely used due to simplicity, while advanced AI-based methods offer better optimization but are more complex
Security, calibration, and connectivity reliability are major challenges
The system works as a closed-loop control system, where:
Sensors measure soil moisture
ESP32 processes and compares it with threshold values
Pump is turned on/off using a relay
Data is sent to the cloud for monitoring and control
The hardware includes ESP32, soil moisture sensors (FC-28 in prototype), relay modules, and a water pump, with power supplied through regulated sources or batteries. The software handles calibration, decision-making, telemetry, cloud communication (MQTT/HTTP), and fault tolerance with buffering and retry mechanisms.
The system also supports:
Remote monitoring and control via mobile app
Data logging and analytics
Manual override and setpoint adjustment
Over-the-air updates and secure authentication
Conclusion
Based on experimental data, it can be concluded that data transfer to the database did not experience problems. But there is an average delay of 2.28 seconds. Based on testing of 3 internet providers, the results of the speed of sending data to the firebase averaged no more than 4 seconds. The process of sending data is dependent on the speed of internet provider.
References
[1] A. Parlina, H. Murfi and K. Ramli, \"Smart City Research in Indonesia: A Bibliometric Analysis,\" 2019 16th International Conference on Quality in Research (QIR): International Symposium on Electrical and Computer Engineering, Padang, Indonesia, 2019, pp. 1-5, doi: 10.1109/QIR.2019.8898264.
[2] A. Firmansah, Aripriharta, I. M. Wirawan, H. W. Herwanto, I. Fadlika and Muladi, \"Design and Experimental Validation of the Self-powered IoT for Indoor Temperature-Humidity Monitoring,\" 2019 International Conference on Electrical, Electronics and Information Engineering (ICEEIE), Denpasar, Bali, Indonesia, 2019, pp. 139-143, doi: 10.1109/ICEEIE47180.2019.8981426.
[3] M. Suryanegara, A. S. Arifin, M. Asvial, K. Ramli, M. I. Nashiruddin and N. Hayati, \"What are the Indonesian Concerns About the Internet of Things (IoT)? Portraying the Profile of the Prospective Market, in IEEE Access, vol. 7, pp. 2957-2968, 2019, doi: 10.1109/ACCESS.2018.2885375.
[4] A Wijaya, M Rivai. (2018). Control and Monitoring Irrigation System IoT-based Using Banana Pi.
[5] A. R. Altahtawi, E.Andika, W. N. Harjanto, “Initial Design Development of Wireless Node-based Automatic Irrigation Control Systems and The Internet of Things,” 2018 ISSN: 20852517.
[6] P. W. Ciptadi, R. H. Hardyanto. (2018). Application of IoT Technology on Hydroponic Plants Using Arduino and Blynk Android.
[7] M. S. Hadi, M. R. Maulana, M. A. Mizar, I. A. E. Zaeni, A. N. Afandi and M. Irvan, \"Self Energy Management System for Battery Operated Data Logger Device Based on IoT,\" 2019 International Conference on Electrical, Electronics and Information Engineering (ICEEIE), Denpasar, Bali, Indonesia, 2019, pp. 133-138, doi: 10.1109/ICEEIE47180.2019.8981406.
[8] M. S. Hadi, M. A. A. Shidiqi, I. A. E. Zaeni, M. A. Mizar and M. Irvan, \"Voice-Based Monitoring and Control System of Electronic Appliance Using Dialog Flow API Via Google Assistant,\" 2019 International Conference on Electrical, Electronics and Information Engineering (ICEEIE), Denpasar, Bali, Indonesia, 2019, pp. 106110, doi: 10.1109/ICEEIE47180.2019.8981415.