Design and Development of a Smart Rainwater Harvesting and Plant Irrigation System for Sustainable Garden Management
Y. Angel
Department of Horticulture, Kalasalingam Academy of Research and Education Krishnankoil, Virudhunagar, Tamil Nadu, India.
Garlapati Eswar Dattha
Department of Computer Science Engineering, Kalasalingam Academy of Research and Education Krishnankoil, Virudhunagar, Tamil Nadu, India.
Medam Sasi Varun Reddy *
Department of Electronics and Communication Engineering Kalasalingam Academy of Research and Education Krishnankoil, Virudhunagar, Tamil Nadu, India.
Gooty Mahind
Department of Computer Science Engineering, Kalasalingam Academy of Research and Education Krishnankoil, Virudhunagar, Tamil Nadu, India.
S. Nishanth Kumar Ojha
Department of Electronics and Communication Engineering Kalasalingam Academy of Research and Education Krishnankoil, Virudhunagar, Tamil Nadu, India.
S. Nithiswaran
Department of Computer Science Engineering, Kalasalingam Academy of Research and Education Krishnankoil, Virudhunagar, Tamil Nadu, India.
S. Dushyanth
Department of Computer Science Engineering, Kalasalingam Academy of Research and Education Krishnankoil, Virudhunagar, Tamil Nadu, India.
*Author to whom correspondence should be addressed.
Abstract
Irrigating domestic gardens, terrace landscapes, and small-scale horticultural plots using traditional calendar-based scheduling or manual labour fails to account for real-time soil moisture dynamics. This mismatch frequently results in over-irrigation during periods of adequate moisture, plant water stress during unmonitored intervals, and the failure to use naturally available rainwater. This paper presents the comprehensive design, prototyping, and functional evaluation of an Internet of Things (IoT)-enabled smart rainwater harvesting and plant irrigation system built around an ESP8266 NodeMCU microcontroller. The hardware architecture integrates an analogue soil moisture sensor, a DHT22 module for ambient temperature and relative humidity, and an HC-SR04 ultrasonic water-level sensor positioned above a rainwater storage cistern, and two 5 V submersible micro-pumps driven through optoisolated relay modules. The system incorporates a dual-threshold hysteresis control regime: irrigation is initiated when soil moisture falls below 40% (Management Allowed Depletion) and terminates when moisture reaches 55% (field capacity), effectively suppressing relay chattering. A priority-based water allocation algorithm monitors the rainwater reservoir: while the rainwater level remains at or above 20%, Pump 1 delivers harvested water; when the level falls below 20%, the controller automatically switches pumping to Pump 2, which draws water from a municipal/normal-water fallback tank. A responsive web dashboard provides real-time telemetry, manual pump toggling, and an emergency-stop safety interrupt. Bench prototype validation confirmed autonomous source switching, moisture-triggered irrigation cut-off, recovery following communication failures, and manual overrides across varied operating states. The technical documentation provides sensor calibration formulations, threshold selections, electronic and hydraulic response latencies, and power-budget analyses, and establishes protocols for multi-season agronomic field testing
Keywords: Automatic irrigation, rainwater harvesting, soil moisture calibration, ESP8266 NodeMCU, dual-source switching, ultrasonic level sensing, hysteresis control, sustainable garden management, IoT precision agriculture