Automatic Drip Irrigation System Based on ESP32 Microcontroller Using Average Soil Moisture Soil Moisture Value for Melon Plants

Authors

  • Nor Amir Mahmud Universitas Muria Kudus
  • Noor Yulita Dwi Setyaningsih Universitas Muria Kudus

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