This paper presents an Internet of Things (IoT)-based smart agriculture monitoring prototype built around an ESP32 microcontroller.
The system integrates soil-moisture sensing, ambient temperature and relative-humidity measurement, and irrigation-water monitoring through total dissolved solids (TDS) and turbidity sensors. A relay interface controls a water pump, and an OLED provides local status information.
Selected values and pump state are shared through Firebase Realtime Database for a web dashboard, while a Telegram bot supports status requests and remote mode and pump commands. The supplied firmware implements threshold-based automatic control with soil-moisture hysteresis and multi-sample confirmation. This manuscript documents the implemented architecture and interface evidence.
It does not claim calibrated sensor accuracy, water savings, crop-yield improvement, or field-scale reliability; these require controlled validation.
Introduction
The text presents an IoT-based Smart Agriculture Monitoring and Irrigation System designed to improve irrigation management by monitoring soil moisture, environmental conditions, and irrigation-water quality. Traditional irrigation methods based on fixed schedules or visual inspection may not respond effectively to changing field conditions. The proposed system addresses this limitation through real-time sensor monitoring and automated pump control.
The system uses an ESP32 microcontroller integrated with soil-moisture, temperature, humidity, TDS, and turbidity sensors. It also includes an OLED display for local monitoring, a relay-controlled water pump, Firebase for cloud-based data monitoring, and a Telegram bot for remote control and status updates.
The system operates in two modes: Automatic mode, where the pump is controlled according to predefined sensor thresholds, and Manual mode, where users can control the pump remotely. In automatic mode, the pump operates based on soil-moisture and water-quality conditions, with confirmation checks and hysteresis to prevent frequent switching.
The collected sensor data are displayed locally and uploaded to Firebase, allowing users to monitor agricultural conditions through a dashboard. Telegram commands such as /status, /auto, /manual, /on, and /off provide additional remote interaction.
The prototype demonstrates the integration of IoT sensors, automated irrigation control, cloud monitoring, and remote communication into a single system. However, the sensor readings and control thresholds require proper calibration and field testing before they can be considered accurate or suitable for different crops.
Conclusion
An ESP32-based smart agriculture monitoring prototype has been implemented by integrating soil, ambient, and irrigation-water sensing with local OLED output, relay-controlled pumping, Firebase dashboard monitoring, and Telegram commands. The provided firmware implements threshold-based automatic operation with soil-moisture hysteresis and multi-sample confirmation. The present evidence supports an implementation-focused preliminary report. Calibration and controlled trials are still necessary before quantitative performance claims are made.
References
[1] N. Suma, S. R. Samson, S. Saranya, G. Shanmugapriya, and R. Subhashri, “IOT Based Smart Agriculture Monitoring System,” International Journal on Recent and Innovation Trends in Computing and Communication, vol. 5, no. 2, pp. 177–181, 2017, doi: 10.17762/ijritcc.v5i2.193.
[2] G. Rajakumar, M. S. Sankari, D. Shunmugapriya, and S. P. Uma Maheswari, “IoT Based Smart Agricultural Monitoring System,” Asian Journal of Applied Science and Technology, vol. 2, no. 2, pp. 474–480, Apr.–Jun. 2018.
[3] Espressif Systems, “ESP32 Series Datasheet.” [Online]. Available: https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf. Accessed: Nov. 3, 2026.
[4] Google, “Firebase Realtime Database Documentation.” [Online]. Available: https://firebase.google.com/docs/database. Accessed: Nov. 3, 2026.
[5] Telegram, “Telegram Bot API.” [Online]. Available: https://core.telegram.org/bots/api. Accessed: Nov. 3, 2026.