Smart Irrigation Using Iot
Smart Irrigation Using Iot
On
SMARTIRRIGATIONUSINGIoT
Submittedforpartial
fulfilment for the award of the degree
BACHELOROFTECHNOLOGY
In
COMPUTERSCIENCE&ENGINEERING
By
TASHRITHREDDY (19CS02193)
M ARAVIND (19CS002207)
K SAIKRISHNA (19CS002186)
Submittedto
DEPARTMENTOFCOMPUTERSCIENCE&ENGINEERIN
G SIR PADAMPAT SINGHANIA UNIVERSITY, UDAIPUR
Nov2022
Underthesupervisionof
MrHARISHTIWARI
ASSISTANT PROFESSOR
DepartmentofComputerScience&Engineering Sir
PadampatSinghania University Udaipur
313601 Rajasthan India
1
CERTIFICATE
ThisistocertifythattheworkembodiedinthisProjectReportentitled“SMA
RT IRRIGATIONUSING IOT” being submitted by” “T.ASHRITH
REDDY”-
“19CS002193”,“MARAVIND”- “19CS002207”,“KSAIKRISHNA”-“19
CS002186”,7th Semester for partial fulfillment of the requirement for
the degree of“ Bachelor of Technology in Computer Science &
Engineering ” discipline in “ Sir Padampat Singhania University ”
during the academic session July-Dec 2022is a record ofBonafede piece
of work, carried out by student under my supervision and guidance in
the “ Department of Computer Science & Engineering ”, Sir Padampat
Singhania University.
APPROVED&GUIDED BY:
Mr HARISH TIWARI
Assistant professor
Department of Computer Science & Engineering
Sir Padampat Singhania University
Udaipur 313601 Rajasthan India
2
DECLARATION
I, student of Bachelor of Technology in Computer Science &
Engineering, 7th Semester,session: July–Dec2022,Sir Padampat
SinghaniaUniversity,hereby declare that the work presented in
this Project Report entitled “SMART
IRRIGATIONUSINGIOT”istheoutcomeofmyownwork,isbonaf
ideand correct to the best of my knowledge and this work has
been carried out taking care of Engineering Ethics. The work
presented does not infringe any patented
workandhasnotbeensubmittedtoanyotheruniversityoranywhere
elseforthe award of any degree or any professional diploma.
M ARAVIND (19CS002207)
K SAIKRISHNA (19CS002186)
MrHARISHTIWARI
Assistant Professor
DepartmentofComputerScience&Engineering
3
Toourparents,teachersandallthewell-wishersoutthere...
4
ABSTRACT
Despite the perception people may have regarding the agricultural process, the
reality is that today’s agriculture industry is data-cantered, precise, and smarter
than ever. The rapid emergence of the Internet-of-Things (IoT) based technologies
redesigned almost every industry including ‘‘smart agriculture’’ which moved the
industry from statistical to quantitative approaches. Such revolutionary changes
are shaking the existing agriculture methods and creating new opportunities along
a range of challenges. This article highlights the potential of wireless sensors and
IoT in agriculture, as well as the challenges expected to be faced when integrating
this technology with the traditional farming practices. IoT devices and
communication techniques associated with wireless sensors encountered in
agriculture applications are analyzed in detail. What sensors are available for
specific agriculture application, like soil preparation, crop status, irrigation, insect
and pest detection are listed. How this technology helping the growers throughout
the crop stages, from sowing until harvesting, packing and transportation is
explained. Furthermore, the use of unmanned aerial vehicles for crop surveillance
and other favorable applications such as optimizing crop yield is considered in
this article. State-of-the-art IoT-based architectures and platforms used in
agriculture are also highlighted wherever suitable. Finally, based on this thorough
review, we identify current and future trends of IoT in agriculture and highlight
potential research.
5
GLOSSARY
6
ThingSpeak: ThingSpeak is an open-source IoT analytics platform that
enables IoT devices to send and receive data over the internet and analyze
and visualize that data in real-time. ThingSpeak provides a web-based API
that allows developers to create IoT applications and services, such as data
logging, sensor monitoring, and predictive analytics. ThingSpeak supports
a wide range of IoT devices and protocols, including MQTT, REST API,
and HTTP.
API key: An API key is a unique code that is used to authenticate and
authorize access to a web-based application or service. An API key is
typically generated by the provider of the web service and given to the
user or application that wants to access the service. The API key serves as
a secret token that identifies the user or application and grants them access
to specific resources or functions of the service. API keys are commonly
used in web-based services, such as social media platforms, weather APIs,
and IoT platforms like ThingSpeak
7
Wi-Fi: short for Wireless Fidelity, is a wireless networking technology
that allows electronic devices to connect to a local area network (LAN) or
the internet without the need for physical cables. Wi-Fi uses radio waves
to transmit data between devices and access points, and has become a
popular method of wireless communication due to its convenience and
flexibility.
8
Table of Contents
CERTIFICATE.............................................................................................................2
DECLARATION...........................................................................................................3
ABSTRACT..................................................................................................................5
GLOSSARY..................................................................................................................6
List of Figures.............................................................................................................13
Chapter 1.....................................................................................................................15
1.1Introduction............................................................................................................15
1.1.1Introduction to Internet of Things:..........................................................15
1.2Aim & Objective:..........................................................................................19
1.3SystemRequirements.......................................................................................21
1.3.1HardwareRequirements:.............................................................................21
1.3.2SoftwareRequirements:...............................................................................22
Chapter 2.....................................................................................................................23
2.1Literature Review............................................................................................23
2.2Why to make smart irrigation using IOT?...................................................28
2.3Proposed solution............................................................................................30
2.4Implications and Significance of Results......................................................31
2.5Methodology....................................................................................................34
Chapter 3.....................................................................................................................38
3.1Software Requirement Analysis.....................................................................38
3.1.1Hardware Requirements:............................................................................38
3.1.2Software Requirements:..............................................................................49
Chapter 4.....................................................................................................................61
4.1Design:..............................................................................................................61
4.1.1Design Architecture:....................................................................................61
4.2OverallArchitecture&ItsConnections:..........................................................62
Chapter 5.....................................................................................................................64
5.1Implementation:..............................................................................................64
5.2Tools Used........................................................................................................64
9
5.2.1Required Tools and Driver Software’s:......................................................64
5.3System Design..................................................................................................65
5.4Program Implementation...............................................................................67
5.4.1ProgramDescription:....................................................................................67
5.4.2ProgramImplementation:............................................................................67
5.5Data Visualisation on our Channel................................................................72
Chapter 6.....................................................................................................................73
6.1Conclusion:......................................................................................................73
6.2Result and Discussion:....................................................................................75
Chapter 7.....................................................................................................................77
7.1References........................................................................................................77
10
List of Figures
FIGURE 1 ESP8266 NODE MCU...................................................................................................40
FIGURE 2 5V RELAY......................................................................................................................41
FIGURE 3 MOTOR PUMP.............................................................................................................42
FIGURE 4 SOIL MOISTURE SENSOR........................................................................................43
FIGURE 5 JUMPER WIRES..........................................................................................................45
FIGURE 6 DHT11 SENSOR..............................................................................................................47
FIGURE 7 BREAD BOARD............................................................................................................49
FIGURE 8 IDE................................................................................................................................50
FIGURE 9 AURDINO SETUP INSTALLATION.........................................................................51
FIGURE 10 DRIVERS INSTALLATION......................................................................................53
FIGURE 11 THING SPEAK API....................................................................................................54
FIGURE 12 CHANNEL CREATION.............................................................................................55
FIGURE 13 DATA STORAGE........................................................................................................55
FIGURE 14 DATA VISUALISATION............................................................................................56
FIGURE 15 DATA VISUALISATION............................................................................................57
FIGURE 16 DHT SENSOR LIBRARY..........................................................................................58
FIGURE 17 ESP8266 LIBRARY.....................................................................................................59
FIGURE 18 SOIL MOISTURE LIBRARY....................................................................................60
FIGURE 19 VERIFIED CODE WITH NO ERRORS...............................................................................71
11
SMARTIRRIGATIONUSINGIOT
12
Chapter 1
1.1Introduction
1.1.1 Introduction to Internet of Things:
By building a network of linked devices that can interact with one another and the
internet, the IoT has the potential to completely transform the way we live and
work. The healthcare, agricultural, and transportation sectors have already begun
to feel the effects of this technology, which is anticipated to increase quickly in
the years to come. This essay introduces the Internet of Things and looks at both
its advantages and disadvantages.
Kevin Ashton introduced the idea of the "Internet of Things" in 1999. He coined
this phrase to illustrate how physical items and the internet are connected.
Sensors, actuators, and other electrical devices are used in the Internet of Things
to gather data, analyse it, and deliver feedback. IoT devices' data may be used to
monitor and manage a variety of physical systems, including equipment,
structures, and even entire cities.
The IoT is predicated on the notion that by incorporating sensors and other
electrical devices into objects, they may become sentient. Once these devices are
connected to the internet and can communicate with one another, they can
cooperate to provide useful services and functions.
13
Using sensors, a smart thermostat can monitor the temperature and change itself
accordingly, creating a cost living space while using less energy.
The Internet of Things has the potential to help people, businesses, and society at
large in a variety of ways. Remote monitoring and management of physical
systems is one of the main advantages of IoT. By allowing them to monitor and
improve their operations in real-time, this may aid organizations in cutting costs
and increasing efficiency. For instance, a business may monitor its production line
with IoT sensors to see possible faults before they become serious ones.
By offering customized and automated services, IoT may also be utilized to raise
people's quality of life. A smart home system, for instance, may utilize sensors to
recognize when a person enters or leaves the house, change the lighting and
temperature appropriately, and even buy groceries based on their prior purchases.
In recent years, the Internet of Things (IoT) has had a big influence on agriculture.
Farmers can monitor their crops and livestock in real-time, analyze data, and
make better decisions by being able to link gadgets and sensors to the internet. In
this article, we'll talk about how the Internet of Things (IoT) is affecting
agriculture and how it's altering how we raise and prepare food.
Farmers may monitor soil moisture, nutrient levels, and meteorological conditions
with sensors put across their fields to decide when to sow, irrigate, and harvest
crops. The demand for toxic pesticides and herbicides can be decreased by using
IoT devices to assist farmers in identifying crop diseases and pests. IoT sensors
may help farmers apply the proper quantity of fertiliser and water, minimising
waste and raising yields by delivering real-time data on soil conditions and plant
health.
14
The health and behaviour of cattle may also be tracked using IoT devices. Farmers
may monitor an animal's vital signs, follow its movements, and look for any
symptoms of disease or distress by attaching sensors to the animal. The early
detection and prompt treatment of health issues can lower the risk of disease
outbreaks and enhance animal welfare.
IoT devices may also aid farmers in streamlining animal feeding and hydration,
ensuring that animals get the proper nutrients and hydration. By monitoring
animal behaviour and health information, farmers may also determine the most
productive and effective breeding techniques, enhancing the production and
general health of their herds.
Farmers and food producers may control the supply chain more effectively with
the use of IoT devices. IoT sensors may assist in locating supply chain bottlenecks
and inefficiencies by monitoring the transit of items from the farm to the table. In
order to ensure that food reaches customers more quickly and fresher, this data
may be utilised to streamline logistics and lower waste.
IoT gadgets can assist food manufacturers in ensuring the safety and traceability
of their products. IoT sensors may assist guarantee that food is kept and delivered
in the best conditions, lowering the risk of spoiling and contamination. They do
this by tracking the movement of commodities and monitoring temperature and
humidity levels throughout transit.
IoT gadgets may also be used to keep an eye on the weather and safeguard the
environment. Farmers and environmentalists may monitor soil and water quality,
analyse weather trends, and identify environmental concerns by installing sensors
in farms, forests, and water bodies. This information can be utilised to spot
potential problems and create plans for sustainability and conservation.
15
By maximising their resource utilisation, IoT devices may also assist farmers in
lowering their carbon impact. Farmers can find chances to lessen their
environmental impact and increase sustainability by tracking their energy use and
greenhouse gas emissions.
IoT has numerous advantages for agriculture, but it also has certain drawbacks.
The most difficult issue is data management. Farmers and food producers need the
infrastructure and know-how to efficiently store, handle, and analyse the massive
amounts of data being created by IoT sensors.
The expense of IoT infrastructure and devices is another issue. Although sensors
and other IoT devices are becoming more affordable, many farmers and food
producers might not have the funds to purchase these technologies.
IoT has a variety of options for agriculture despite these obstacles. IoT may assist
farmers and food producers fulfil the rising need for food while simultaneously
preserving the environment and natural resources by optimising agricultural
yields, cutting waste, and enhancing animal welfare. IoT will probably take on a
bigger role in agriculture in the future with more innovation and funding.
The capacity to gather and analyse massive volumes of data is another advantage
of IoT. This can assist businesses in gaining understanding of consumer
behaviour, market trends, and other crucial data.
IoT has a lot of advantages, but it also has certain drawbacks. IoT security is one
of the biggest problems. The chance of cyberattacks and data breaches rises as
more gadgets are connected to the internet.
IoT devices are frequently not securely protected, and many manufacturers do not
give security a high priority throughout the design and development stages.
16
Devices may become susceptible to hacking and other online dangers as a result.
The interoperability of devices is one more difficulty with IoT. Since IoT devices
frequently come from different manufacturers and employ various communication
protocols, it can be challenging for them to cooperate effectively. The efficacy of
IoT systems may be hampered and compatibility problems may arise as a result.
IoT privacy concerns are also quite important. As more information is gathered by
IoT devices, there is a chance that it could be misused or accessed by
unauthorized parties. Other sensitive data might get lost as a result of this.
The goal of this project is to utilize less water and labor when manually irrigating
a field. The suggested method uses sensors that are embedded directly into the soil
to determine the moisture content of the soil. These sensors measure the water
content of the soil, and the engine turns on if the water content is insufficient.
This project's particular goal is to develop and deploy a smart irrigation system
utilizing IoT technologies to increase agricultural water efficiency. The following
are the project's goals:
To create a system that can use sensors to continuously track the amount
of soil moisture and the weather, sending the information to a cloud-based
platform.
To create and put into use an algorithm capable of analyzing sensor data
and figuring out when to water the plants based on their individual water
requirements.
17
To ensure that the plants get the right quantity of water depending on their
requirements, which will save water use and boost agricultural output.
To ensure that the plants get the right quantity of water depending on their
requirements, which will save water use and boost agricultural output.
The overall goal of this project is to show how IoT technology has the power to
transform conventional agricultural methods and advance sustainable and
effective water management. This project aims to contribute to the overarching
objective of attaining sustainable growth in the agriculture sector by creating a
smart irrigation system that can decrease water use, boost crop output, and
improve efficiency.
18
1.3 SystemRequirements
1.3.1 HardwareRequirements:
The hardware requirements for the smart irrigation system using IoT project
include the following components:
2. Soil moisture sensor: This sensor measures the moisture content in the
soil and sends the data to the NodeMCU board.
3. DC water pump motor: This motor pumps water from the source to the
plants.
4. Relay module: This module controls the water pump motor by turning it
on and off based on the moisture level in the soil.
5. Power supply: The NodeMCU board and the DC water pump motor both
require a power supply. A 12V power supply is recommended for the
water pump motor, while a 5V power supply is suitable for the NodeMCU
board.
6. Jumper wires: These wires are used to connect the different components
together.
19
is commonly used in electronic projects. It consists of a capacitive
humidity sensor and a thermistor for measuring temperature.
1.3.2 SoftwareRequirements:
1Arduino IDE: This is an open-source software used to write and upload code
to the NodeMCU board.
1 ThingSpeak API: This is an IoT platform that allows the user to send and
receive data from the internet. We will be using this platform to send the
sensor data to the internet and retrieve it from any location.
4 Relay module library: This is an Arduino library used to interface the relay
module with the NodeMCU board.
All of the above hardware and software components are necessary for the proper
functioning of the smart irrigation system using IoT.
20
Chapter 2
Smart irrigation systems powered by the internet of things also provide more
comfort and control. Farmers using conventional irrigation methods must
21
manually check soil moisture levels and modify watering schedules as necessary.
Contrarily, automated smart irrigation systems enable farmers to remotely monitor
and modify watering schedules using their cellphones or laptops.
Farmers may save time and money while lowering the danger of overwatering and
underwatering thanks to this ease and control. Smart irrigation systems built on
the Internet of Things provide several advantages over conventional irrigation
methods, but they also have significant drawbacks.
Cost is one of the most important restrictions. The cost of sensors, controllers, and
other equipment necessary for smart irrigation systems might be prohibitive for
small-scale farmers. Smart irrigation systems, however, could become cheaper as
the technology spreads and production costs fall down.
The possibility for technical problems with IoT in smart irrigation is another
drawback. Systems built on the Internet of Things rely on wireless communication
between sensors and controllers, which can be interfered with by external
variables like signal loss or interference.
Last but not least, installing and running IoT-based smart irrigation systems
requires a certain amount of technical proficiency. For small-scale farmers who do
not have the required technical understanding, this might be a hurdle. However,
some intelligent irrigation systems are created to be user-friendly and operate with
little technical know-how.
22
yields, more comfort and control, and the possibility for financial savings, as was
previously mentioned. On the other hand, traditional irrigation methods are often
less expensive to adopt and run since they need less technical knowledge.
Traditional irrigation methods, which rely on human monitoring of soil moisture
levels and estimations of water consumption, are frequently less accurate than
smart irrigation systems.
This can result in over or under watering, which can harm plant health and reduce
crop yields.
This may lead to over- or under-watering, which might be harmful to the health of
the plants and lower agricultural output. Traditional irrigation methods frequently
rely on predefined watering schedules rather than real-time assessments of plant
water demand, which can result in less effective water use.
The study describes an IoT-based smart irrigation system for farming. The system
has sensors that can measure the temperature, humidity, and wetness of the soil
and send the information to a central control unit. The control unit analyses the
data and calculates how much water is ideal for each plant. Additionally, the
system includes a mobile app that enables farmers to monitor and manage the
irrigation system from a distance.
23
systems that provide real-time data on soil moisture and other environmental
factors can help address this problem by enabling farmers to efficiently use water
and cut down on wastage.
The authors emphasize the advantages and drawbacks of current solutions while
providing a thorough analysis of relevant work in the field of smart irrigation
utilizing IoT. The study adds to the increasing body of knowledge on smart
irrigation systems and offers insightful information for further study in this area.
Overall, the study shows how IoT-enabled smart irrigation systems have the
potential to transform agriculture by maximizing water efficiency and minimizing
waste.
The authors of "An IoT-based Smart Irrigation System for Efficient Water
Management in Precision Agriculture" by S. Mishra, S. Kumar, and S. Jha, who
published their work at the 2021 IEEE International Conference on Computing,
Communication, and Automation (ICCCA), are another article we have picked.
24
The paper presents a smart irrigation system based on the Internet of Things for
efficient water management in precision agriculture. The system employs sensors
to monitor the soil's temperature, humidity, and moisture levels before
transmitting the data to a central control unit.
After analyzing the data, the control unit determines how much water is optimal
for each crop. The technology also comes with a smartphone app that gives
farmers remote access to the irrigation system management.
Water shortage in agriculture is a severe issue, and the authors discuss the need
for efficient water management. They call attention to how employing traditional
irrigation methods can waste a lot of water, which is detrimental to the
environment and crop productivity. Smart irrigation systems enabled by the
Internet of Things can help to solve this issue.
The study offers an Internet of Things (IoT)-based smart irrigation system to solve
the issue of water shortage in agriculture. The device effectively monitors soil
moisture and other environmental parameters to optimize water consumption.
Thanks to the smartphone app, farmers now have a simple method to remotely
operate and monitor their irrigation system.
The authors provide a detailed study of relevant work in the area of smart
irrigation utilizing IoT while highlighting the benefits and disadvantages of
current systems. The work contributes to the growing body of knowledge on
25
intelligent irrigation systems and provides useful data for further research in this
field. The article's overall message is that by maximizing water efficiency and
reducing waste, IoT-based smart irrigation systems have the potential to
revolutionize agriculture.
This essay will outline the benefits of IoT for smart irrigation and how it may be
used. IoT technology may be applied in many different ways to improve irrigation
methods. The usage of soil moisture sensors is one of the most popular
applications. A field or garden might have soil moisture sensors installed all over
it to gauge the soil's moisture content.
A central controller can then use this information to remotely change the watering
schedule after being communicated. Utilizing weather data is another way that
IoT is used in smart irrigation. Farmers and gardeners may modify their irrigation
practices in response to the present and forecasted weather by incorporating
weather sensors and data into irrigation systems. For instance, the irrigation
system can be switched off to minimize overwatering if a downpour is forecast.
Irrigation practices may be made to utilize less water by using IoT technology.
Farmers and gardeners can find inefficient areas and make changes to decrease
water waste by tracking water use and analyzing data. This can reduce the cost of
irrigation while also conserving water.
Smart irrigation with IoT has several advantages over conventional watering
26
techniques. The main advantage is improved effectiveness. Farmers and gardeners
may optimize their irrigation practices, minimizing water loss and boosting crop
output, by utilizing real-time data and analytics. This is especially crucial in
regions with scarce water supplies or during droughts.
Irrigation practices may now be more precisely controlled and managed thanks to
IoT technology. When using conventional irrigation techniques, it can be difficult
to gauge when and how much water should be applied to plants or crops. IoT
technology enables accurate irrigation monitoring and management, ensuring that
plants and crops get the precise amount of water they require.
The lowering of labor expenses is another advantage of IoT for smart irrigation.
Manual monitoring and alterations are frequently needed when using traditional
irrigation techniques. A large portion of this process is automated by IoT
technology, saving farmers and gardeners time and resources.
IoT technology has several benefits for intelligent irrigation techniques. Farmers
and gardeners can optimize irrigation practices, decreasing water wastage and
boosting crop output, by utilizing real-time data and analytics. Greater control and
precision are also provided by the use of IoT in smart irrigation, in addition to
lower labor costs. The usage of IoT in smart irrigation will become even more
crucial in guaranteeing the sustainability of agricultural practices as water
resources become more limited.
To increase agricultural yield, reduce waste, and increase production, the Internet
of Things, or IoT, may be used in agriculture. Some of the main advantages of IoT
for agriculture include the following
IoT devices may be used to monitor environmental factors like soil moisture,
temperature, humidity, and others that have an impact on crop development. With
the use of this information, it is able to decide when to irrigate, fertilize, and
harvest crops.
27
Accurate maps of agricultural areas may be made using IoT technologies. By
planting seeds in the most beneficial areas and utilizingfertilizer and pesticides
only where necessary, these maps may subsequently be utilized to optimize
agricultural development. This can lower waste and boost agricultural
productivity.
IoT devices can ensure that crops receive the appropriate quantity of water at the
right time by automating irrigation systems. Reduced labour and water expenses
might be the outcome of this.
IoT devices may be used to monitor the behaviour and health of cattle, enabling
farmers to identify potential problems and take corrective action before they get
worse.
In general, the use of IoT in agriculture may help farmers make data-driven
choices, reduce waste, and boost productivity, all of which will lead to higher
yields and more profitability.
Our intelligent irrigation system is built to water plants when the soil gets dry
using soil moisture sensors and a pump. IoT technology was used in the system's
construction.
The soil moisture sensors are buried in the ground close to the plant roots to gauge
the soil's moisture content. The sensors alert the system's microcontroller (such an
Arduino) when the moisture level drops below a predetermined threshold.
The irrigation system's pump then receives a signal from the microcontroller
turning it on, allowing water from a reservoir or well to be pumped into it. After
that, a network of pipelines and drip lines delivers the water to the plants.
28
You may also use a timer or a real-time clock to regulate the frequency and length
of watering cycles in order to make sure the system runs smoothly. This can assist
in avoiding underwatering or overwatering, which can damage plants and waste
water.
The smart irrigation system may benefit from adding a timer or real-time clock to
regulate the watering cycles. This can assist farmers in ensuring that the irrigation
system is functioning properly and efficiently as well as in avoiding overwatering
or underwatering, both of which can harm crops.
To optimize watering schedules and minimize water wastage, the smart irrigation
system might include additional sensors or data sources, such as weather
predictions, in addition to the timer or real-time clock. Farmers may increase crop
yields and decrease water use by utilizing IoT technology to monitor and operate
the irrigation system, which will ultimately result in higher profitability and
sustainability.
Using soil moisture sensors and a pump to irrigate plants only, when necessary,
your smart irrigation system is designed to save water and enhance plant health.
You can automate and monitor the system by utilizing IoT technology, which
increases its effectiveness and efficiency.
29
According to the literature study, IoT-enabled smart irrigation systems provide a
number of advantages over conventional irrigation approaches, including better
decision-making, more efficient water use, higher agricultural yields, lower labour
and energy costs, and more sustainability. The expense, cybersecurity worries,
connectivity challenges, and the requirement for specialised knowledge and skills
are some of the technology's drawbacks.
The potential for IoT-enabled smart irrigation devices to revolutionise the way
water is handled in agriculture is one of the main consequences of these findings.
Smart irrigation systems can assist farmers in maximising water use and crop
yields while minimising waste and lessening the environmental effect of
agriculture by giving real-time data on soil moisture, weather, and other pertinent
aspects. This can assist guarantee that crops are cultivated effectively and
sustainably, especially in locations where water is scarce, which has significant
consequences for food security.
Smart irrigation systems can assist farmers in adjusting their irrigation practises to
ensure that crops receive the water they require, even in difficult situations, by
delivering real-time data on weather conditions and soil moisture levels. By doing
so, the possibility of crop failure can be decreased, and farmers will be able to
continue earning a living despite climate-related difficulties
Cyberattacks on IoT devices might jeopardise the security of the irrigation system
and the data it gathers. Large-scale agricultural enterprises should be especially
concerned since a cyber-attack might have negative effects.
Connectivity is another limitation for smart irrigation systems since they require
consistent internet access to transmit data to the central hub or gateway. This
could be challenging in distant locations where internet connectivity might be
sporadic or nonexistent. Research is needed to provide economical, trustworthy
connection alternatives for smart irrigation systems, especially in underdeveloped
countries where the demand for efficient water management is highest.
The literature review concludes that IoT-enabled smart irrigation systems have a
number of advantages over conventional irrigation techniques, including better
decision-making, increased sustainability, improved water usage efficiency,
higher crop yields, and lower labour and energy costs.
31
Overall, the findings of this evaluation of the literature have significant
ramifications for the subject of intelligent irrigation and water management in
agriculture, and they emphasise the necessity of further study and innovation in
this sector.
2.5 Methodology
The approach for an IoT-based project on smart irrigation would probably include
a number of steps, such as choosing the right IoT devices, gathering and analyzing
data, and assessing the system's efficacy.
The selection of acceptable IoT devices would be the initial stage in the technique.
Sensors for measuring soil moisture are only one example of the gadgets. The
devices used would rely on the project's unique specifications. For instance,
temperature and humidity sensors may be more significant in a greenhouse
setting, but soil moisture sensors and rain gauges may be more significant in an
outdoor agricultural field. Based on the compatibility with the sensors, the
microcontroller that would receive data from the sensors and transfer it to the
cloud platform should be chosen.
The microcontroller would briefly store the data after receiving it from the
sensors, which would then transfer it to the cloud platform on a regular basis. Data
may be kept on a cloud platform or a local database.
When creating irrigation schedules, additional elements like plant type, soil type,
and weather conditions should be considered in addition to sensor data. You can
get this information from nearby weather stations or from publicly accessible
weather data.
32
Creating effective and efficient irrigation schedules requires consideration of plant
kind, soil type, and weather conditions. Data on soil moisture, temperature,
humidity, and other environmental elements that may impact crop development
and water needs may be collected by smart irrigation systems utilising the Internet
of Things.
To improve the precision of irrigation schedules, additional data sources including
weather predictions, plant growth models, and nearby weather stations can also be
employed. For instance, meteorological data can include details on temperature,
precipitation, and wind speed that may influence crop water requirements. Based
on variables including crop stage, canopy cover, and growth rate, plant growth
models may assist anticipate the amount of water that a crop will need.
Farmers may optimise their irrigation schedules and reduce water wastage by
using these extra data sources. Farmers may increase crop yields while preserving
water and lessening their impact on the environment by creating irrigation
schedules that are suited to the unique requirements of their crops and the local
environment.
All things considered, the application of IoT technology in smart irrigation
systems provides farmers with a potent tool to optimise irrigation, decrease water
waste, increase crop yields, and support sustainable agriculture.
Based on the data gathered, the study may entail creating algorithms to establish
the best watering schedules. This may involve elements including the type of
plant, the soil, and the weather. In order to create prediction models that may be
used to establish the most effective irrigation schedules, the data can be analyzed
using machine learning algorithms and data science approaches. To glean useful
insights from the data, data science techniques like statistical analysis and data
visualization can also be used.
Setting a cutoff point for soil moisture levels below which irrigation would be
necessary might be accomplished using a straightforward algorithm. The soil type
and requirements for the particular crop would be used to establish the threshold
33
value. When the soil moisture level drops below the predetermined threshold, the
algorithm will activate the irrigation system. The best irrigation schedule might be
determined using this method by including more variables like the temperature,
rainfall, and weather
The algorithm would activate the irrigation system and provide the crops with the
required amount of water when the soil moisture level fell below the threshold
level. This strategy may be successful in water conservation and lowering
needless irrigation.
However, as you pointed out, the algorithm can be improved even further by
including extra variables like weather, rainfall, and temperature. For instance, by
including weather forecasts, the system might be enhanced to predict precipitation
and modify irrigation schedules accordingly.
The frequency and length of watering may also be modified based on plant water
needs by factoring in temperature data.
Overall, depending on the unique requirements of the crops and the climate, the
algorithm utilised in a smart irrigation system can be as basic or as complicated as
needed. Farmers may boost crop yields and cut down on water wastage by using
IoT technology to gather and analyse data on various environmental parameters
and optimise irrigation plans appropriately.
Finally, comparing the amount of water used and the crop yield before and after
34
the smart irrigation system was installed can help determine how effective the
system is. This may be used to assess if the system is producing the anticipated
results of increased crop output and decreased water demand. The amount of
water utilised really and the amount that would have been used if conventional
irrigation methods had been employed may be compared.
Calculating the cost reductions is another way to gauge how well the system
works. By comparing the cost of water consumption before and after installing the
smart irrigation system, the cost savings would be determined. The original
system investment would also affect the cost reductions.
In general, the process for a project on IoT-based smart irrigation entails choosing
the right devices, gathering and analyzing data, and assessing the system's
efficacy. The approach should be created to produce the intended results of
decreased water use and increased crop output. The approach employed should be
customized to the particular project needs, and the data obtained should be
analyzed using the right methodologies to yield actionable insights.
35
Chapter 3
3.1 Software Requirement Analysis
3.1.1 Hardware Requirements:
The ESP8266 is a Wi-Fi enabled microcontroller that has become popular for IoT
applications. It is based on the Tensilica Xtensa LX106 processor and runs at a
clock speed of 80 MHzthe chip has 64KB of instruction RAM, 96KB of data
RAM, and 4MB of flash memory for program storage.
The ESP8266 has built-in Wi-Fi capabilities, supporting 802.11 b/g/n Wi-Fi
standards. It also has a built-in TCP/IP stack, which allows it to connect to the
internet and communicate with other devices. The module supports a variety of
communication protocols, including MQTT, HTTP, and HTTPS, making it
compatible with a wide range of applications and platforms.
36
One of the standout features of the ESP8266 is its low power consumption. The
chip has a deep sleep mode that consumes only a few microamps of power,
making it ideal for battery-powered devices that need to conserve energy.
Robotics: The ESP8266 can be used to create IoT-enabled robots that can
be controlled remotely and transmit data back to the user.
Education: The low cost and ease of use of the ESP8266 make it a
popular choice for educational projects, allowing students to experiment
with IoT technology.
The ESP8266 is a versatile and low-cost Wi-Fi module that has become a popular
choice for IoT applications.Its built-in Wi-Fi capabilities, low power
consumption, and support for a variety of communication protocols make it a
37
flexible and powerful tool for developers and hobbyists alike.
With its wide range of potential applications, the ESP8266 is sure to continue to
be a popular choice for IoT projects in the years to come.
38
to the microcontroller's output pins and programmed to switch on or off based on
certain conditions or inputs.
Figure 2 5V RELAY
39
Motor pump:A motor pump is an essential device used to transfer fluids, such as
water or other liquids, from one location to another. Motor pumps consist of a
motor and a pump, which work together to generate pressure and flow in the
liquid being transferred.
The primary advantage of motor pumps is their ability to move large volumes of
fluid over long distances, quickly and efficiently. They can also be used in
applications where gravity cannot be relied upon to move the fluid, such as in
uphill or remote locations.
In addition to their efficiency, motor pumps are also highly reliable and durable.
They can withstand harsh environmental conditions and require minimal
maintenance, making them a cost-effective solution for a wide range of
40
applications.
Soil Moisture:A soil moisture sensor is an electronic device used to measure the
amount of water present in soil. It is a crucial tool for farmers, gardeners, and
other professionals who need to monitor the moisture content of soil in real-time
to ensure optimal plant growth and water usage.
41
Soil moisture sensors typically work by measuring the resistance of the soil to
electrical current. The higher the moisture content, the lower the resistance, and
vice versa.
The primary advantage of using a soil moisture sensor is its ability to provide
accurate, real-time data on soil moisture levels. This allows for more precise and
efficient watering, reducing water waste and lowering the risk of over or under-
watering plants.
In addition to their efficiency, soil moisture sensors are also highly versatile and
can be used in a variety of soil types and environments. They can also be
integrated with other sensor technologies, such as weather stations or humidity
sensors, to provide a more complete picture of soil moisture conditions.
Overall, soil moisture sensors are a crucial tool for those who depend on healthy
plant growth, providing accurate and real-time data on soil moisture levels. As
water becomes an increasingly scarce resource, the use of soil moisture sensors
can help to reduce water usage and ensure the sustainability of agricultural
practices.
The primary advantage of using jumper wires is their versatility and ease of use.
They can be used to create a wide range of circuits, allowing for experimentation
and customization. Jumper wires also make it easy to troubleshoot circuits, as they
42
can be easily removed and replaced if a connection is incorrect or needs to be
modified.
Another advantage of jumper wires is their flexibility. They can be bent and
shaped to fit any circuit layout, making it possible to create complex circuits with
ease. They are also available in different lengths and colors, making it easy to
organize and differentiate between different connections.
One of the limitations of using jumper wires is the potential for loose connections
or interference. If not properly inserted, jumper wires can become loose or
disconnected, which can cause issues with the circuit. Additionally, if wires are
placed too closely together, they can create interference, which can impact circuit
performance.
Overall, jumper wires are an essential tool for electronic enthusiasts and
professionals, providing a versatile and easy-to-use solution for circuit
43
connections. While there are some limitations to their use, the advantages
outweigh the potential drawbacks, and they remain a critical component in the
world of electronics.
DHT11 Sensor: The DHT11 sensor is a low-cost temperature and humidity
sensor that is commonly used in various applications. It is a digital sensor that
uses a single-wire interface to communicate with microcontrollers like Arduino.
In this essay, we will discuss the working principle, specifications, applications,
and advantages of the DHT11 sensor.
The DHT11 sensor can measure temperature from 0 to 50°C with an accuracy of
±2°C and humidity from 20 to 90% with an accuracy of ±5%. It has a 3-pin
interface, including VCC, GND, and DATA. The sensor's operating voltage is 3.5
to 5.5V, and its power consumption is very low, making it ideal for battery-
powered projects. The sensor has a response time of 2 seconds for humidity and 5
seconds for temperature.
This information can then be used to control various devices like fans, heaters,
and air conditioners. The DHT11 sensor is also used in industrial applications
where temperature and humidity monitoring are critical. For example, it can be
used to monitor the temperature and humidity in data centers, where maintaining
44
an optimal environment is crucial.
Advantages The DHT11 sensor is an affordable and reliable sensor for measuring
temperature and humidity. It is easy to use and does not require any external
components or calibration, making it a popular choice for DIY enthusiasts and
hobbyists. The sensor's digital output makes it easy to interface with
microcontrollers like Arduino, and its low power consumption makes it ideal for
battery-powered projects. The sensor's compact size and lightweight make it easy
to integrate into various projects.
The sensor's digital output, low power consumption, and compact size make it
easy to interface with microcontrollers and integrate into various projects. The
DHT11 sensor is a popular choice among DIY enthusiasts and hobbyists, and its
applications in various fields highlight its importance and usefulness.
45
Bread Board:
The board is usually made up of a plastic base with rows of holes, which are
connected together by metal strips underneath the plastic. These metal strips are
typically arranged in a pattern that follows the standard layout of an electronic
circuit, with a set of columns for power and ground, and rows for connecting
various components.
46
wires. This makes breadboards ideal for prototyping and testing new circuits, as
well as for educational purposes.
47
The code editor is where users write, edit, and save their Arduino sketches. The
sketches are written in a variant of the C programming language, which is easy to
learn and understand. The editor includes features such as syntax highlighting,
auto-indentation, and code completion, which make writing code more efficient.
Figure 8 IDE
The compiler is responsible for translating the Arduino sketch into machine code
that can be understood by the microcontroller on the Arduino board. The compiler
checks the syntax of the code, detects errors, and generates an executable file that
can be uploaded to the board. The compiler is integrated with the editor, which
means that users can compile their sketches with a single click.
The serial monitor is a tool that allows users to communicate with the Arduino
board through the USB port. It displays the data sent and received by the board in
real-time, which is useful for debugging and testing purposes. The serial monitor
also allows users to send commands and receive responses from the board, which
enables them to interact with their projects.
The library manager is a tool that simplifies the process of adding new
functionality to an Arduino project. It allows users to search, download, and
48
install libraries that provide pre-written code for common tasks such as
controlling motors, reading sensors, and communicating with other devices. The
library manager also ensures that the libraries are up-to-date and compatible with
the current version of the Arduino software.
Arduino software is a powerful and versatile tool that enables users to create
interactive projects with ease. Its user-friendly interface, rich features, and open-
source nature make it an ideal platform for hobbyists, artists, and engineers to
explore their creativity and turn their ideas into reality. With the help of Arduino
software, the possibilities are endless, and the only limit is one's imagination and
limits.
Here are the steps to install the Arduino IDE on a Windows operating system:
1. First, visit the official Arduino website and navigate to the "Download"
page.
2. Select the appropriate version of the Arduino IDE for your operating
system. In this case, select the Windows version.
3. Once the download is complete, open the installer by double-clicking the
downloaded file.
4.
49
Figure 9 AURDINO SETUP INSTALLATION
5. If you receive a security warning from your operating system, click "Run"
to proceed with the installation.
6. Follow the instructions provided by the installation wizard to complete the
installation process. This may include selecting a destination folder for the
software and choosing the appropriate language settings.
Regardless of which operating system you are using, you may need to install
additional drivers for your Arduino board to communicate with your computer.
These drivers can typically be found on the Arduino website and can be installed
using the installation wizard provided by the manufacturer. Once the drivers are
installed, you should be able to connect your Arduino board to your computer and
begin using the Arduino IDE to program your projects.
50
follow these steps:
1 Connect your Arduino board to your computer using a USB cable.
1 If you have not already done so, download and install the Arduino IDE
software from the official Arduino website.
2 Open the Device Manager on your computer by right-clicking on the "Start"
button and selecting "Device Manager" from the menu.
3 Look for a device named "Unknown device" or "Arduino" under the "Ports
(COM & LPT)" section of the Device Manager. If you do not see this
device, make sure that your Arduino board is properly connected to your
computer.
4 Right-click on the "Unknown device" or "Arduino" and select "Update
Driver Software" from the context menu.
5 In the next window, select "Browse my computer for driver software."
6 Navigate to the folder where you installed the Arduino IDE software and
select the "drivers" folder.
7 Click "Next" to start the installation process.
8 When the driver installation is complete, you should see a message
indicating that the driver was successfully installed.
51
Figure 10 DRIVERS INSTALLATION
Note that some Arduino boards may use different USB-to-serial converter chips
that require different drivers. In this case, you should refer to the manufacturer's
documentation for specific installation instructions.
ThingSpeak:
ThingSpeak is an IoT platform that allows users to collect, analyze, and act on
data from IoT devices. It is a cloud-based platform that provides an easy-to-use
interface for collecting and analyzing data. The ThingSpeak API allows
developers to integrate ThingSpeak into their applications and devices, making it
a popular choice among IoT developers. In this essay, we will discuss the
ThingSpeak API, its features, and its benefits.
52
What is the ThingSpeak API?
The ThingSpeak API is a RESTful API that allows developers to interact with
ThingSpeak. It provides developers with a set of HTTPS(S) endpoints that allow
them to access and manipulate ThingSpeak resources, including channels, feeds,
and data. The ThingSpeak API uses a simple syntax and standard HTTP methods
to interact with ThingSpeak, making it easy to integrate into applications and
devices.
The ThingSpeak API provides developers with several features that make it an
ideal choice for IoT developers.
53
Figure 12 CHANNEL CREATION
Data Storage: The ThingSpeak API allows developers to store data from IoT
devices in ThingSpeak. Developers can store data in fields, which are columns in
a channel. Each field can store up to 255 characters of data.
54
allow developers to easily analyze and understand their data.
Data Access: The ThingSpeak API allows developers to access their data using
HTTP GET requests. Developers can retrieve data from ThingSpeak in a variety
of formats, including JSON, XML, and CSV.
The ThingSpeak API provides developers with several benefits that make it an
ideal choice for IoT development. These benefits include using a simple syntax
and standard HTTP methods, making it easy to integrate into applications and
devices.
55
Figure 15 DATA VISUALISATION
The ThingSpeak API provides developers with flexibility in terms of data storage,
data access, and data visualization. This flexibility allows developers to create IoT
applications and devices that meet their specific needs.
The ThingSpeak API provides developers with several security features, including
HTTPS encryption and user authentication. These features ensure that data is
secure and protected from unauthorized access.
56
DHT Library: The DHT library is a popular Arduino library used for interfacing
with DHT11, DHT21, and DHT22 humidity and temperature sensors. These
sensors are commonly used in environmental monitoring systems, HVAC
systems, and indoor gardening projects.
The library provides easy-to-use functions to read the sensor values and convert
them into meaningful units.
The DHT sensors use a digital protocol to communicate with the microcontroller.
The library handles the communication protocol and returns the temperature and
humidity values as integers. The library also includes a function to convert the
integer values to floating-point numbers, making it easier to use the sensor
readings in calculations.
The DHT library is compatible with a wide range of Arduino boards, including
the popular Arduino UNO, Nano, and Mega boards.
57
ESP8266WiFi Library: The ESP8266WiFi library is a popular Arduino library
used for interfacing with the ESP8266 Wi-Fi module. The ESP8266 is a low-cost
Wi-Fi module that can be used to add Wi-Fi connectivity to any Arduino project.
The module can be programmed using the Arduino IDE and can be used to
connect the Arduino board to the internet or to other Wi-Fi-enabled devices.
58
Soil Moisture Sensor Library: The soil moisture sensor library is a popular
Arduino library used for interfacing with soil moisture sensors. Soil moisture
sensors are used to measure the moisture content in the soil, which is useful in
applications such as agriculture, gardening, and environmental monitoring.
The library provides easy-to-use functions to read the sensor values and convert
them into meaningful units. The library includes functions to calibrate the sensor
and to set the threshold values for different moisture levels.
The soil moisture sensor library is compatible with a wide range of Arduino
boards, including the popular Arduino UNO, Nano, and Mega boards. The library
can be easily installed using the Arduino IDE library manager or by manually
downloading and adding the library files to the Arduino libraries folder.
In conclusion, these four libraries are essential tools for Arduino developers. They
provide easy-to-use functions to interface with different sensors, modules, and
devices, making it easier to develop Arduino projects. By using these libraries,
developers can save time and focus on the core functionality of their projects.
59
Chapter 4
4.1 Design:
Software: The software component of the system includes the code running on
the ESP8266 microcontroller, which is responsible for reading sensor values,
controlling the motor and relay, and sending data to the Thingspeak cloud
platform. The code is written in C++ using the Arduino IDE and utilizes the DHT
and ESP8266WiFi libraries.
Cloud Platform: The Thingspeak cloud platform is used to store and visualize
the sensor data sent by the ESP8266 microcontroller. The platform provides
various features, such as real-time data visualization, data analysis, and integration
with other IoT platforms.
60
User Interface: The user interface for the system is provided by the Thingspeak
cloud platform, which allows the user to monitor the sensor readings and control
the watering system remotely.
4.2 OverallArchitecture&ItsConnections:
The design of the ESP8266 grounded armature would generally depend up on the
program given through the rendering through the Arduino IDE(Integrated
Development Environment).
The connections of the hardware components for the project:
VCC to 3.3V
GND to GND
Data pin to D2
61
GND to GND
Signal pin to A0
Relay module:
VCC to 3.3V
GND to GND
Input pin to D4
DC motor:
Connect the positive terminal to the collector of a NPN transistor (e.g. 2N2222)
Connect the emitter of the transistor to GND
Connect the base of the transistor to D3
The motor and relay module should be powered by an external power supply (e.g.,
12V DC) since they require higher voltage and current than the ESP8266 can
provide.
62
Chapter 5
5.1 Implementation:
5.2Tools Used
The open- source Arduino Software (IDE) makes it easy to write law and upload
it to the board. It runs on Windows, Mac OS X, and Linux. The terrain is written
in Java and grounded on Processing and other open- source software.
In this tackle design, we're being using the Arduino IDE (Integrated Development
Environment) which is the general software used for all types of Micro Controller
boards from UNO to MEGA.
This software’s has a veritably easy and flexible platform to make the rendering
fluently and to check them by collecting formerly and after that uploading on to
the Arduino board takes place. This Arduino software generally uses java
grounded coding and also uses some introductory programing like C, C., So, we're
using this IDE to make the coding’s easier and more flexible.
The open- source Arduino Software (IDE) makes it easy to write law and upload
it to the board. It runs on Windows, Mac OS X, and Linux. The terrain is written
in Java and grounded on Processing and other open- source software.
The System is designed to read sensor data from a DHT11 temperature and
humidity sensor, as well as a soil moisture sensor connected to analog pin A0 on
an Arduino board. The program uses an ESP8266 Wi-Fi module to send this data
to the Thingspeak cloud platform for storage and analysis.
The first part of the program sets up the necessary libraries and global variables.
The DHT.h library is used to interface with the DHT11 sensor, and the
ESP8266WiFi.h library is used to communicate with the Wi-Fi module. The ssid,
password, and apiKey variables are used to configure the Wi-Fi network and the
Thingspeak API key, respectively. The program also sets the pin numbers for the
various sensors and actuators, and defines the intervals for serial output and
Thingspeak data transmission.
In the setup() function, the program initializes the serial communication, sets the
pin modes for the motor and relay, and turns them off. It then initializes the
DHT11 sensor and attempts to connect to the Wi-Fi network. If the connection is
successful, it prints a message to the serial monitor.
In the loop() function, the program checks the elapsed time since the last serial
output and sensor reading, and sends a new reading to the serial monitor if the set
interval has passed. It then checks the elapsed time since the last Thingspeak data
transmission and sends a new data point if the set interval has passed.
The program then checks the moisture level of the soil by reading the analog
value from the soil moisture sensor and converting it to a percentage. If the
moisture level is below 30%, the program turns on the relay and motor to water
the plant. Otherwise, it turns them off.
64
The readSensors() function reads the temperature, humidity, and soil moisture
levels from their respective sensors, and updates the global variables accordingly.
65
5.4Program Implementation
5.4.1ProgramDescription:
The program connects to a Wi-Fi network and ThingSpeak cloud service, reads
the moisture level of the soil using the soil moisture sensor and the temperature
and humidity using the DHT11 sensor. If the moisture level is below a threshold
value, the program activates a water pump using the relay to water the plants. The
program also sends the data to ThingSpeak for further analysis and visualization.
The program first includes the required libraries, defines the Wi-Fi settings,
sensor pins, and moisture threshold. It then initializes the motor driver pins and
ThingSpeak client. In the setup function, the program initializes serial
communication for debugging, the DHT sensor, and connects to the Wi-Fi
network and ThingSpeak.
In the loop function, the program reads the moisture level, temperature, and
humidity using the sensors, checks if the moisture level is below the threshold,
and turns on the motor using the relay to activate the water pump if it is. The
program then sends the data to ThingSpeak and waits for 5 seconds before turning
off the motor. If the moisture level is above the threshold, the program turns off
the motor and sends the data to ThingSpeak. The program repeats this process in a
loop.
5.4.2 ProgramImplementation:
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <WiFiClientSecure.h>
66
#include <ThingSpeak.h>
#include <DHT.h>
WiFiClient client;
WiFiClientSecureclientSecure;
ThingSpeakClientthingSpeak(client, clientSecure);
void setup() {
67
Serial.begin(9600);
pinMode(motor1A, OUTPUT);
pinMode(motor1B, OUTPUT);
digitalWrite(motor1A, LOW);
digitalWrite(motor1B, LOW);
pinMode(pumpPin, OUTPUT);
digitalWrite(pumpPin, LOW);
dht.begin();
Serial.println("Connecting to Wi-Fi...");
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting...");
}
Serial.println("Connected to Wi-Fi!");
thingSpeak.begin(client);
}
void loop() {
if (moistureLevel<moistureThreshold) {
digitalWrite(pumpPin, HIGH);
Serial.println("Watering plants...");
thingSpeak.setField(1, String(moistureLevel));
thingSpeak.setField(2, String(temperature));
thingSpeak.setField(3, String(humidity));
thingSpeak.writeFields(1);
delay(10000);
digitalWrite(pumpPin, LOW);
Serial.println("Watering stopped.");
delay(5000);
}
else {
digitalWrite(pumpPin, LOW);
Serial.println("Plants do not need watering.");
69
thingSpeak.setField(1, String(moistureLevel));
thingSpeak.setField(2, String(temperature));
thingSpeak.setField(3, String(humidity));
thingSpeak.writeFields(1);
delay(10000);
}
The above screenshot shows that the below program is clear without any crimes in
them the coming step of this process is to make the system collected program to
be uploaded on the pall that's the Arduino board which would be performing in
the producing of the affair as the proper generation of the following program.
70
5.5 Data Visualisation on our Channel
71
Chapter6
6.1 Conclusion:
The key findings of this project suggest that IoT-enabled smart irrigation systems
have the potential to transform the way water is managed in agriculture. By
providing real-time data on soil moisture, weather conditions, and other relevant
parameters, smart irrigation systems can help farmers optimize water usage and
improve crop yields, while minimizing waste and reducing the impact of
agriculture on the environment. The literature review also highlighted the
limitations of the technology, including cost, cybersecurity concerns, connectivity
issues, and the need for specialized knowledge and skills.
One of the most significant findings of this project is that smart irrigation systems
offer several benefits over traditional irrigation techniques, including increased
water usage efficiency, improved crop yields, reduced labor and energy costs,
72
better decision-making, and enhanced sustainability.
By providing real-time data on soil moisture levels, weather conditions, and other
relevant parameters, smart irrigation systems allow farmers to irrigate their crops
precisely and efficiently, minimizing water waste and increasing yields. This has
important implications for food security and sustainability, as it can help ensure
that crops are grown efficiently and sustainably, even in areas where water is
scarce.
Another important finding of this project is that smart irrigation systems can help
farmers adapt to the effects of climate change, such as droughts and extreme
weather events. By providing real-time data on weather conditions and soil
moisture levels, smart irrigation systems can help farmers adjust their irrigation
practices to ensure that crops receive the water they need, even in challenging
conditions. This can help reduce the risk of crop failure and help farmers maintain
their livelihoods in the face of climate-related challenges.
However, there are also limitations to the use of IoT-enabled smart irrigation
systems. One of the main limitations is cost, as IoT devices can be expensive to
install and maintain. This may limit their adoption by small-scale farmers or those
with limited resources.
Overall, the findings of this project suggest that IoT-enabled smart irrigation
systems have the potential to revolutionize the way water is managed in
agriculture, by improving efficiency, sustainability, and crop yields.
However, there are also challenges and limitations to the technology, which must
be addressed through further research and innovation. Smart irrigation systems
offer a promising solution to the challenges of water management in agriculture,
but their adoption and implementation will depend on factors such as cost,
cybersecurity, connectivity, and user-friendliness.
However, there are also challenges and limitations to the technology, which must
be addressed through further research and innovation. The findings of this project
have important implications for the field of smart irrigation and water
74
management in agriculture, and underscore the need for continued research and
innovation in this area.
A smart irrigation system using IoT has the potential to significantly improve
irrigation efficiency and reduce water waste. By integrating IoT technology, such
a system can provide real-time data on soil moisture levels, weather conditions,
and water usage, allowing for precise and timely irrigation scheduling.
Another potential result of a smart irrigation system using IoT is increased crop
yield. By providing plants with the appropriate amount of water at the optimal
time, the system can promote healthy growth and increase the likelihood of a
successful harvest. This can ultimately lead to higher profits for farmers and a
more sustainable agricultural system.
However, there may also be limitations to such a system. One potential limitation
is the cost of implementing and maintaining the IoT technology. This may require
a significant investment upfront, which may not be feasible for all farmers or
gardeners.
75
incorrect irrigation scheduling or even crop loss.
Overall, a smart irrigation system using IoT has the potential to revolutionize
agricultural practices and improve the sustainability of our food systems.
However, careful consideration of potential limitations and further research is
necessary to ensure the effectiveness and feasibility of such a system.
76
Chapter 7
7.1 References
3. Gómez, Á., & López, P. (2019). Smart irrigation system using IoT and
artificial intelligence techniques. Sensors, 19(19), 4272.
77
7. Mounir, A., & Sadik, A. S. (2019). (pp. 878-882). IEEE.
8. Nayeem, T., Sarma, J. K., & Singh, P. (2020). In 2019 3rd International
Conference on Intelligent Sustainable Systems (ICISS) .Smart irrigation
using IoT and machine learning. (pp. 403-412). Springer, Singapore.
9. Patil, P., & Shah, R. (2019). Smart irrigation system using IoT and
machine learning. In 2019 3rd International Conference on Computing
Methodologies and Communication (ICCMC) (pp. 1322-1325). IEEE.
10. Sahoo, B. K., Nayak, P. K., & Behera, B. (2020). Smart irrigation system
using IoT and artificial intelligence. In Handbook of Research on Modern
Cryptographic Solutions for Computer and Cyber Security (pp. 357-369).
IGI Global.
11. Sarkar, A., & Mitra, S. (2019). IoT based smart irrigation system using
machine learning. In 2019 6th International Conference on Advanced
Computing and Communication Systems (ICACCS) (pp. 1-5). IEEE.
12. Shah, S., Malik, S. A., & Choudhary, P. (2020). Smart irrigation system
using IoT and machine learning. In 2020 IEEE 6th International
Conference on Computing Communication and Automation (ICCCA) (pp.
1-5). IEEE.
78
79