Automated Watering and Irrigation System Using Arduino UNO
Automated Watering and Irrigation System Using Arduino UNO
ISSN No:-2456-2165
Water is one of the most important aspects for the A. System Overview
growth of plants. The amount of water determines the rate This paper discusses an automated watering and
of growth and life of the plant, and excess or scarcity of irrigation system which can supply water to the crops when
water can hinder their growth. Irrigation is an artificial needed as well as adjust the amount of water supplied
watering technique which plays an important role in depending on the soil moisture content. The sensors sense
agriculture in India. Irrigation aids in the growth of crops, moisture content by sending an electrical current through the
maintenance of landscapes and revegetation of soils in arid soil and measuring the output resistance. Since water
regions and through periods of less than average conducts electricity, the output resistance determines the
precipitation. The conventional way of irrigation involves amount of water present in the soil. Whenever, the
irrigating the fields manually by using sprinkler systems, resistance increases, it means that the moisture content of
furrow irrigation, drip irrigation or manual labour. One of the soil has dropped.
the major downsides of this conventional irrigation is that
the amount of water supplied to the crop is incalculable. As B. Construction
a result of which, the crops do not receive optimum amount The system uses an Arduino Uno microcontroller as its
of water for growth, hindering their yield. In this paper we core control system. A 4 module, 5V relay is connected to
will be discussing the working of an automated irrigation the Arduino. This relay is used to actuate the two solenoid
system which will allow farmers to irrigate, and monitor the valves and the pump. The two soil moisture sensors (EC-
soil moisture content to optimise the yield of their 1258) are also connected to the Arduino. There is a water
crops. The system can be slightly modified to accommodate supply to the solenoids through a pump which draws water
other watering applications. from a reservoir. The Wi-Fi module (ESP-8266) is also
connected to the Arduino.
The main advantage of using this system is to reduce D. Internet of Things (IoT) Integration
human interference and, ensure proper and timely irrigation. We have used a free service known as ThingSpeak to
The logs and information of the watering schedule is integrate IoT functionality in the project. “ThingSpeak is
uploaded to a cloud server called ThingSpeak. This data can an open-source Internet of Things (IoT) application
be used for research in the field of agriculture. and API to store and retrieve data from things using
the HTTP and MQTT protocol over the Internet or via a
if(Sens1<20)
{
digitalWrite(12,LOW); //if soil moisture is less than
20% in section 1, open valve 1 and supply water to section
1
}
else if(Sens1>50 && Sens1<100)
{
digitalWrite(12,HIGH); //if soil moisture is greater
than 50% in section 1, close valve 1 and stop water supply
to section 1
}
if(Sens2<20)
{
digitalWrite(13,LOW); //if soil moisture is less than
20% in section 2, open valve 2 and supply water to section
2
}
else if(Sens2>50 && Sens2<100)
{
digitalWrite(13,HIGH); //if soil moisture is greater
Fig 3:- Dataflow Diagram of Automated Watering and than 50% in section 2, close valve 2 and stop water supply
Irrigation System to section 2
}
Sample code for reading data from moisture sensors
and supplying water is given below. The code which allows if(Sens1<20 || Sens2<20)
the Wi-Fi module to communicate with the server was taken {
from the ThingSpeak GitHub server.2 The code mentioned digitalWrite(8,LOW); //pump on
in this paper only contains the original and integral part }
responsible for sensor control and actuation of valves. if(Sens1>50 && Sens2>50)
{
digitalWrite(8,HIGH); //pump off
}
1
ThingSpeak. Wikipedia. }
https://en.wikipedia.org/wiki/ThingSpeak.
2
Mathworks. mathworks/thingspeak-arduino. GitHub
ThingSpeak Communication Library for Arduino, ESP8266
and ESP32. https://github.com/mathworks/thingspeak-
arduino.
A. Sample Code Test Run Results The automated watering and irrigation system is a
solution to the improper irrigation and watering problem for
crops and plants. It will not only increase the yield of crops
but also prevent water wastage. It is also a very versatile
system as it finds its application in agricultural, domestic
and commercial sectors. This system can easily be self-
sustaining by use of a solar panel.
A. Future scope
Hydroponics: Hydroponics is the method of growing
crops or plants without the presence of soil. It makes use
of water which is enriched with nutrients that are
important for plant growth so that the need of soil can be
eliminated. Our system could be useful in the field of
hydroponics as it could automate the whole process,
provide crops or plants with optimum amount of water
Fig 4:- Test Run Results
and nutrients at optimum time intervals and could give
The above shown graphs represent the sensor data the consumers accurate data.
Mobile application: We plan to develop an application
taken from a sample test run using the sample code. Field 1
chart represents the soil moisture measured by sensor 1 in for the consumers so that they can remotely monitor
their plants or crops. Also, this app will allow the user to
test section 1 and field 2 chart represents the soil moisture
measured by sensor 2 in test section 2. The sensor data toggle the system or only specific sections of the system
interval is 15 seconds i.e. the sensor send moisture data on and off.
Database: We plan to develop an SQL database which
every 15 seconds.
will store all the incoming data from the soil moisture
As shown by the graphs, when moisture in the soil sensors. This database could be useful in research as it
would contain the daily water consumption of crops.
drops below 20%, water is supplied to that section of soil till
This could help determine the life cycle of plants and
it reaches a moisture content of 50-100%.
help in reduction of yield time, optimizing the yield and
B. Advantages thus improve the productivity of crops. The data could
also be used to create genetically modified organisms
The system eliminates the need of human interference.
(GMOs) as the full life cycle details of a crop will be
Operating cost includes only cost of electricity which is
much less than the current labour cost for irrigation of available to the researchers.
crops on farms or watering of plants in office spaces.
Initial cost for installation of system is low (≈3,500 ACKNOWLEDGMENT
INR).
The crops or plants receive optimum amount of water. A great deal of hard work and dedication was put into
Thus, wastage of water or loss of yield due to improper the project. We would like thank all the individuals who
irrigation is eliminated. have given their suggestions and input without which this
The system provides live data and feedback which can paper would not have been completed successfully.
be compiled and studied to build databases for the crops.
We would like to express our gratitude to Ms.
C. Limitations Madhura Sohoni, Department of Biotechnology, Jai Hind
The absence of a graphical user interface (GUI) like a College (Autonomous), who helped us structure the paper
mobile or desktop app makes it difficult to monitor the and gave us new ideas regarding the future scope of the
system and its data. system.
The operation of the system cannot be remotely
controlled. We would also like to thank our faculty and classmates
The calibration of the sensor needs to be done through for their constant support, encouragement and assitance
the programming software which might be difficult. throughout this project.
Adjustments have to be done for the water supply since
different plants require different amount of water.