IoT-Based Crop-Specific Smart Irrigation System Using ESP32 and Cloud Analytics
Abstract
Agriculture uses about 70% of the world's freshwater. Traditional irrigation methods waste this resource and produce low crop output. This paper develops a crop-specific irrigation system built on the ESP32 microcontroller integrated with IoT cloud services. A resistive soil moisture sensor continuously tracks the moisture level. A dual relay module controls the water pump based on the moisture of the crop. Rice requires irrigation when moisture drops below 20% while wheat requires it below 40%. This wider range prevents rapid relay switching. Communication occurs through various channels.The MQTT protocol is used to communicate with the HiveMQ broker for real-time data monitoring. ThingSpeak in conjunction with MATLAB is used to perform the historical data analysis for cloud services. The Twilio API sends an SMS message. A web dashboard on the ESP32 enables real-time monitoring and control of the crop profile.