Automatic Drip Irrigation System Based on ESP32 Microcontroller Using Average Soil Moisture Soil Moisture Value for Melon Plants
Abstract
Maintaining optimal soil moisture is crucial for supporting melon cultivation in greenhouses and ensuring efficient irrigation management. However, conventional drip irrigation is typically carried out manually or based on readings from a single soil moisture sensor, which may not accurately reflect soil moisture conditions across the entire cultivation area. This study aims to develop an automated drip irrigation system based on Average Soil Moisture for melon cultivation in greenhouses. The proposed system consists of one ESP32 controller and six ESP32-based sensor nodes equipped with capacitive soil moisture sensors that communicate via the ESP-NOW protocol. The controller continuously calculates the Average Soil Moisture and applies a hysteresis control algorithm by activating the irrigation pump when the Average Soil Moisture drops below 75% and deactivating it when it reaches 80%. The developed system also provides real-time local monitoring via an OLED display. The developed soil moisture sensing system achieves a measurement error ranging from 1.3% to 4.6%, with measurement accuracy between 95.4% and 98.7%. This irrigation system is capable of maintaining the Average Soil Moisture within the target operating range of 75%–80%, with an average error of 0.21% relative to the lower setpoint, a maximum overshoot of 0.6%, and an average error of 0.41% relative to the upper setpoint, demonstrating the stability of hysteresis-based irrigation control. Overall, the proposed control strategy based on Average Soil Moisture provides more representative irrigation decisions compared to single-point measurements, thereby resulting in stable automatic drip irrigation performance and improving irrigation reliability for melon cultivation in greenhouses.Published
2026-10-22
Issue
Section
Articles
License
Copyright (c) 2026 Nor Amir Mahmud, Noor Yulita Dwi Setyaningsih

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).






