0% found this document useful (0 votes)
69 views5 pages

IoT-Enabled Smart Irrigation with ESP32

The document presents an IoT-enabled smart drip irrigation system designed using the ESP32 microcontroller to automate irrigation processes in agriculture, aiming to reduce water wastage and manual labor. The system utilizes various sensors to monitor soil moisture, temperature, and humidity, allowing for automated watering based on real-time data and user-defined thresholds. Additionally, it includes features for manual control and data visualization through the Arduino IoT cloud application.

Uploaded by

hare4605gn
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views5 pages

IoT-Enabled Smart Irrigation with ESP32

The document presents an IoT-enabled smart drip irrigation system designed using the ESP32 microcontroller to automate irrigation processes in agriculture, aiming to reduce water wastage and manual labor. The system utilizes various sensors to monitor soil moisture, temperature, and humidity, allowing for automated watering based on real-time data and user-defined thresholds. Additionally, it includes features for manual control and data visualization through the Arduino IoT cloud application.

Uploaded by

hare4605gn
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Automatic Irrigation System Using ESP 32

Bhanu Sharma*, Astha Singh

Department of Electronics and Communication Engineering,


IIMT College of Engineering, Greater Noida, U.P. India

*Corresponding Author E-Mail Id: bhanusharma1403@[Link]


ABSTRACT

Water is an important resource in human life. About 80 to 90% of water is used in agriculture.
Considering that due to the daily growth of globalization, the consumption of water is also
increasing. Today, automation is one of the important roles in the field of agriculture.
Agriculture is the main occupation in our country. India's main source of income is agriculture,
so development of agriculture is important. Also, most irrigation systems are manually operated
these days. The traditional techniques available are drip irrigation, sprinkler irrigation
etc. Using drip irrigation we can save water and fertilizers given to the crops. Whenever there
is a change in temperature, humidity and current rain status in the surroundings, these sensors
will detect the change in temperature and humidity and give the raspberry pi an interrupt signal.
This paper mainly focuses on reducing water wastage and minimizing manual labour in the
field during irrigation to save the farmer's time, money and energy. In this paper, we have
designed and tested an IoT-enabled smart drip irrigation system using ESP32 to automate the
irrigation process. The ESP32 communicates with the Arduino IOT cloud app, which is used
to collect irrigation data, manually water plants, turn off automatic watering, and draw graphs
based on sensor data. We connected the ESP32 to a soil moisture sensor, a temperature sensor,
an air humidity sensor. The ESP32 regularly checks whether the soil is dry. If the soil is dry
and the soil temperature is suitable for watering, the ESP32 will open the solenoid valve and
water the plants. The operating time of the drip irrigation system is determined based on the
flow rate measured by the water flow sensor. The ESP32 reads the humidity sensor readings
and alerts the user when the humidity is too high or too low. The user can turn off the automatic
watering system according to the humidity value

KEYWORDS: Raspberry Pi, Sensors, Irrigation, automation

INTRODUCTION

India is a country of villages and agriculture plays an important role for the development of the
country. In our country, agriculture is dependent on monsoons which have enough water. So
irrigation is used in agriculture. In an irrigation system, water is supplied to plants depending
on the type of soil. Two things are very important in agriculture, first to get information about
soil fertility and second to measure soil moisture content. Currently, there are various
techniques available for irrigation that are used to reduce the dependence on rain. And mostly
this technique is powered by
electricity and on/off scheduling. In this technique, water level indicators located in the water
tank and soil moisture sensors are located in the root zone of the plant, and near the module
unit processes the information from the sensor and transmits the data to the controller, which

494
in turn controls the flow of water through the valves. In this paper, we have designed a smart
IoT enabled drip irrigation system using ESP32 microcontroller. The system consists of an
ESP32, a solenoid valve, a soil moisture sensor, a temperature sensor, an air humidity sensor.
We used the Arduino IOT cloud application and web dashboard to collect irrigation data, turn
the automatic watering feature on or off, manually open the valve when needed, and plot
temperature, soil moisture, and air humidity graphs. By opening the valve, the water reaches
the roots of the plants. The soil moisture sensor constantly checks whether the soil is dry. If the
soil is dry and the temperature is ideal, the ESP32 can automatically open the valve and irrigate
the field. Based on the data from the humidity sensor, the user can turn off the automatic
watering function or turn it on again.

HARDWARE DESIGN: - First, we used an ESP32 microcontroller. ESP32 is cheap, has


built-in Wi-Fi, and Blynk IoT officially supports ESP32. Second, we offer improved automatic
watering. The ESP32 takes into account the current time of day, soil moisture content and soil
temperature before opening the valve and watering the plants. Temperature data is not available
for monitoring only. We used the temperature data to ensure we were watering the plants at the
best temperature for maximum water absorption. Third, we have improved the monitoring and
control functions. Along with soil moisture and temperature, the ESP32 also monitors humidity
and alerts the user when the humidity is too low or too high. The user can then decide to turn
off the automatic watering function or manually open/close the valve based on the monitored
values. Finally, the ESP32 collected real-time data. We used this data to track the date and time
of watering and to ensure that we did not accidentally water the plants multiple times in a single
day using the flow sensor.

SYSTEM OVERVIEW: - An overview of an IoT-enabled smart drip irrigation system in


shown below . The ESP32 is the brain of the system. We connected the ESP32 to various
sensors and relays. A temperature sensor probe and a soil moisture sensor probe were inserted
into the soil and monitored the soil temperature and moisture level. A water flow sensor
provides data on water flow and a humidity sensor measures air humidity. The system will
open the solenoid valve to water the plants using a relay. The ESP32 uses Wi-Fi to
communicate with the mobile app or web dashboard via the Arduino IOT cloud. We used the
Arduino IOT cloud app to collect irrigation data, manually operate the valve, and plot soil
temperature fluctuations. When we turn on the system, the ESP32 initializes its non-volatile
memory (NVS) flash, Wi-Fi, real-time operating system (RTOS), soil moisture sensor,
temperature sensor, air humidity sensor, and flow sensor. The ESP32 then connects to the
Blynk servers and checks the soil moisture content, temperature and humidity. If the irrigation
system is currently set to automatic watering and the soil is dry, it will get the current time of
day and compare it to the morning and evening watering time window. If the time is within the
irrigation time window, the ESP32 will check if the soil temperature is within the ideal range.
If the temperature is in the ideal range for maximum water absorption, the ESP32 will open the
valve for an hour and water the plants. The ESP32 will then wait ten minutes before checking
the soil moisture level. If the soil is dry but the current time is not within the irrigation time
window, the ESP32 will not open the valve. Similarly, if the temperature is not in the ideal

495
range, the ESP32 will not open the valve. If the soil is wet during the moisture check, the ESP32
will keep the valve closed.

Used materials

HARDWARE
The main hardware components of the system are microcontroller, moisture sensor,
temperature sensor, air humidity sensor, solenoid valve and relay.

Microcontroller — ESP32:- ESP32 is a low-cost 32-bit microcontroller. It has built-in


Bluetooth and Wi-Fi, making it useful for IoT applications. It can accommodate multiple
sensors and 48-pin General Purpose Input/Output (GPIO) devices. We used ESP32's built-in
Wi-Fi to communicate with the Arduino IOT cloud mobile app or web panel. The ESP32 sends
irrigation information to the Arduino IOT cloud. Using the mobile application, we can control
the valve or set the irrigation time.

SENSORS:-
Soil Moisture Sensor: Measures soil moisture content and provides key information for
irrigation decisions.
Temperature sensor: Monitors field temperature and affects crop growth and health.
Humidity sensor: Measures atmospheric humidity and contributes to a comprehensive
understanding of environmental conditions.

Laptop Dashboard: Displays real-time sensor data and offers a user-friendly interface for
farmers to monitor soil moisture, temperature and humidity.

Water Pump Control System: Uses a 5V relay to control the water pump based on data received
from sensors and user-defined thresholds.

496
Results and Discussion:-

Water requirement of different crops :-

Water holding capacity of each crop: -

We have managed to build a smart irrigation system with IoT support. It provides an enhanced
automation feature where if the soil is dry, the temperature is in the ideal range for maximum
water absorption, the time falls within the designated morning or evening watering windows,
and the ESP32 will open the solenoid valve and water the plants. We have added safety features
to prevent scenarios such as over watering, missing watering times or leaving plants thirsty.
We can also monitor soil moisture, temperature and air humidity using the Arduino IoT Cloud
dashboard. If the

soil moisture is too low or too high, the administrator will receive a notification in the Arduino
IOT cloud app. We can use the Arduino IOT cloud control panel to stop the automation
function or manually open the valve based on the monitored data. While the system worked
well, some areas of improvement still need to be explored, such as:
 Exploring the companion application where we can select the planted crop; the
irrigationtiming would change accordingly to meet the needs of the crop.
 Expansion of the system to control more sensors and valves.
 Investigating the effect of watering plants at the ideal temperature for maximum water
absorption.
 Using Bluetooth or Wi-Fi mesh to control several intelligent drip irrigation systems.
 Exploring some options for portability and solar energy systems.
 Integration of pH sensors, wind speed sensors, rain sensors and more.

497
REFERENCES

[1] Agriculture Overview: Development News, Research, Data | World Bank. Available
online: [Link] topic/agriculture/overview#1 (accessed on 12
December 2022).
[2] Woods, M.; Woods, M.B. Ancient Agricultural Technology: From Sickles to Plows;
Twenty-First Century Books: Minneapolis, MO, USA, 2011; pp. 98–99. ISBN 978-0-
7613-7269-1.
[3] Bellis, M. Farm Machinery and Technology Changes from 1776 to 1990. Available
online: [Link]
(accessed on 13 December 2022).
[4] Types of Agricultural Water Use | Other Uses of Water | Healthy Water | CDC.
Available online: [Link] healthywater/other/agricultural/[Link]
(accessed on 13 December 2022).
[5] Ranjan, S.; Sow, S. Drip Irrigation System for Sustainable Agriculture. Agric. Food
2020, 2, 67–69.
[6] Mangi, N. Performance and evaluation of drip irrigation system, and its future
advantages. Sch. Rep. 2020, 4, 27–41.
[7] Sathyapriya, E.; Naveenkumar, M.R.; Dhivya, V. An Empirical Study on Drip
Irrigation. In Proceedings of the National Conference on Micro Irrigation, TNAU,
Coimbatore, India, 1–3 March 2017.
[8] Verdouw, C.; Wolfert, S.; Tekinerdogan, B. Internet of Things in Agriculture. In CABI
Reviews; CABI International: Wallingford, UK, 2016; pp. 1–12. [CrossRef]
[9] Verma, D.K.; Mishra, A.; Mishra, K. Role of IOT in Introducing Smart Agriculture.
Int. Res. J. Eng. Tech. 2022, 9, 883–887.

498

Common questions

Powered by AI

The use of ESP32 enhances the functionality of the irrigation system by providing built-in Wi-Fi capabilities, which facilitate real-time communication with cloud services, such as the Arduino IoT Cloud, for data collection and system control . It supports multiple sensor connections, allowing detailed monitoring of soil moisture, temperature, and air humidity, thus enabling precise control over irrigation based on current environmental conditions . Compared to traditional methods that often rely on manual labor and fixed scheduling, the ESP32-based system automatically adjusts irrigation activities, improving efficiency and reducing water wastage . Moreover, ESP32's ability to control the irrigation system remotely through a mobile app offers significant convenience and flexibility .

Communication technologies like Wi-Fi and cloud services are critical to the operational effectiveness of smart irrigation systems. Wi-Fi enables real-time data transmission between sensors and the cloud, as well as communication between the system and user interfaces such as mobile apps . Cloud services facilitate data storage, processing, and access from anywhere, which allows for comprehensive monitoring and management of irrigation operations remotely . This connectivity enhances the system's flexibility and scalability by supporting various configurations and expansions, such as additional sensors or systems . It also ensures timely alerts and updates, essential for preventing issues such as over-watering or under-watering by providing actionable insights into environmental conditions . Overall, these technologies enhance decision-making capabilities and optimize resource use, leading to more effective irrigation management .

The smart IoT-enabled drip irrigation system using ESP32 addresses water wastage and manual labor by automating the irrigation process based on real-time environmental data. The ESP32 microcontroller monitors soil moisture, temperature, and humidity, and uses this data to decide when to open the solenoid valve for watering . This reduces the need for manual monitoring and operating of irrigation systems and ensures efficient water usage by watering only when necessary and under optimal conditions . Moreover, the system allows for manual control and data visualization through a mobile app, further minimizing the labor involved .

User interactions with the Arduino IoT Cloud enhance the operation of the irrigation system by allowing users to monitor real-time data on soil moisture, temperature, and humidity through a user-friendly interface . They can manually override the automatic irrigation settings, providing flexibility to address unexpected weather conditions or emergencies . Additionally, users receive alerts when conditions fall outside defined thresholds, enabling timely interventions . This interaction layer ensures that farmers can make informed decisions and tailor the system to better suit specific crop needs, ultimately optimizing water usage and improving crop health .

The flow sensor in the irrigation system measures the rate of water flow through the solenoid valve, providing data crucial for determining the exact amount of water applied during each irrigation cycle . This information helps in avoiding both over-watering and under-watering by ensuring that the right water quantity is delivered based on the system's programmed parameters . The flow sensor also helps in tracking watering times and detecting potential leaks or malfunctions, which enhances overall water management efficiency . By providing precise flow data, it integrates seamlessly with the ESP32's control logic, optimizing water usage .

The system's time-of-day feature contributes to irrigation efficiency by scheduling watering times during morning or evening windows, which are ideal for reducing evaporation losses due to lower temperatures and generally lower winds at these times . Watering during these times ensures maximum absorption by the plants, which is crucial for maintaining soil moisture balance without wasting water . This feature utilizes natural climatic conditions to its advantage, thereby conserving water while meeting the plants' hydration needs precisely when they are most receptive . The system's ability to avoid irrigation during the hottest parts of the day further enhances this efficiency .

The ESP32 microcontroller uses several criteria to decide when to irrigate, including the soil moisture level, temperature, and a designated time window for irrigation. It will only open the solenoid valve to water the plants if the soil is dry, the temperature is within the ideal range for water absorption, and the current time is within the predefined morning or evening irrigation windows . This approach ensures water is only used when necessary and under optimal conditions, significantly conserving water compared to non-automated systems that might operate on a fixed schedule regardless of actual needs .

Real-time monitoring and alerts play a crucial role in preventing both over-watering and under-watering by continuously assessing soil moisture levels and relevant environmental factors such as temperature and humidity . The system can immediately alert users through the Arduino IoT Cloud if parameters fall outside acceptable ranges, allowing for timely manual intervention . This ensures that water is applied only when necessary and stops once optimal soil moisture is achieved, safeguarding both crop health and water resources . By maintaining a precise irrigation schedule responsive to real-time conditions, the system prevents unnecessary water use and potential damage to plants .

Integrating additional sensors such as pH and wind speed sensors into the existing irrigation system can provide a more comprehensive understanding of the environmental conditions affecting the crops. The pH sensors could supply data on soil acidity or alkalinity, which is crucial for maintaining nutrient availability and preventing soil degradation . Wind speed sensors can help adjust irrigation schedules in response to conditions that might increase evaporation, thus conserving water . Overall, these integrations would enable more finely tuned irrigation strategies, leading to better crop health and efficient resource use .

The IoT-enabled drip irrigation system can be improved by integrating additional sensors such as pH, wind speed, and rain sensors to enhance the environmental monitoring capabilities . The system can be expanded to support more sensors and valves, potentially allowing coverage of larger agricultural areas . Another improvement involves developing a companion application to tailor irrigation timing based on specific crop needs . Exploring options for portability and incorporating solar energy systems could enhance the system's sustainability and versatility in various settings . Bluetooth or Wi-Fi mesh networking could enable control over multiple irrigation systems simultaneously, offering scalability .

You might also like