Project Green House
Project Green House
On
REMOTE SENSING AND CONTROLLING OF GREENHOUSE
AGRICULTURE PARAMETER BASED ON IOT
Submitted in partial fulfilment for the award of the degree of
BACHELOR OF ENGINEERING
in
ELECTRONICS AND COMMUNICATION
from
VISVESVARAYA TECHNOLOGICAL UNIVERSITY
BELAGAVI
Submitted by
MANU PRIYA C (1SB20EC046)
NANDINI S (1SB21EC063)
NIKHIL K (1SB21EC065)
VANDANA (1SB21EC097)
2024-2025
Department of Electronics & Communication Engineering
CERTIFICATE
Certified that project work entitled “REMOTE SENSING AND CONTROLLING OF GREENHOUSE
AGRICULTURE PARAMETERS BASED IOT” is a bonafide work carried out by MANU PRIYA
(1SB20EC046), NANDHINI S (1SB21EC063), NIKHIL K (1SB21EC065), VANDHANA (1SB21EC097), in
partial fulfillment for the award of degree of Bachelor of Engineering in Electronics and Communication of the
Visvesvaraya Technological University, Belgaum during the year 2024 – 2025. It is certified that all corrections,
suggestions indicated for internal assessment have been incorporated in the report deposited in the departmental
library. This project report has been approved as it satisfies the academic requirements in respect to project work
prescribed for the Bachelor of Engineering Degree.
We are very much thankful to our beloved founder chairman MJF. Lion Leo
Muthu, our chairman and CEO Dr. Saiprakash Leo Muthu and to COO Dr. R.
Arunkumar for their kind encouragement.
We express our heart full gratitude and humble thanks to Dr. A. Poonguzhali,
HOD, ECE, Sri Sairam College of Engineering, Bengaluru for having facilitated us to
complete our project successfully.
We take this opportunity to express our sincere thanks to our internal guide
Prof Santosh Kumar N, Assistant Professor, Dept. of ECE, Sri Sairam College of
Engineering, Bengaluru for guiding and encouraging us throughout project tenure.
We finally thank our family and friends who have been encouraging us
constantly and inspiring us throughout, without whom this project has never seen the
light of the day.
VISION MISSION OF THE COLLEGE
OUR VISION
OUR MISSION
M4. To inculcate in the graduates, the thirst for self-learning & guide
them to obtain knowledge in their chosen field
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
PSO- Specify, design, build and test analog, digital systems for signal
1 processing including multimedia applications, using suitable
Components or simulation tools
PSO- Understand and architect wired and wireless analog and digital
2 communication systems as per specifications and determine their
performance
6. The engineer and society: Apply reasoning informed by the contextual knowledge
to assess societal, health, safety, legal and cultural issues and the consequent
responsibilities relevant to the professional engineering practice.
12. Life-long learning: Recognize the need for, and have the preparation and ability to
engage in independent and life-long learning in the broadest context of technological
changes.
DECLARATION
Place:
Date:
TEAM MEMBERS:
NANDHINI S 1SB21EC063
NIKHIL K 1SB21EC065
VANDHANA 1SB21EC097
ABSTRACT
NO
1 INTRODUCTION 01 – 02
2 LITERATURE SURVEY
2.1 LITERATURE SURVEY
03 – 14
2.2 PROBLEM STATEMENT
2.3 OBJECTIVES
3 PROPOSED SYSTEM
3.1 PROPOSED SYSTEM
15 – 35
3.2 SOFTWARE REQUIREMENTS
3.3 HARDWARE REQUIREMENTS
4 SYSTEM ANALYSIS
4.1 SYSTEM ANALYSIS
4.2 USE CASE DIAGRAM
36 – 44
4.3 SEQUENCE DIAGRAM
4.4 INTERFACING
4.5 WORKING
7 REFERENCES 50 – 51
8 APPENDIX 52 – 53
LIST OF FIGURES
1 PROPOSED ARCHITECTURE 16
3 ARDUINO IDE 19
4 ARDUINO UNO 21
5 WATER PUMP 22
6 DC MOTOR 24
7 RELAY 26
9 TEMPERATURE SENSOR 29
10 JUMPER WIRES 30
11 MQ2 32
12 POWER SUPPLY 34
13 12V FAN 35
14 FINAL OUTPUT 47
CHAPTER 1
1.1 INTRODUCTION
Developing plants has turned out to be innovative test in light of the fact that the field and strength of
the plants are vital parameter now a day either for cash crops or food crops. One of the significant
issues in the present agriculture is the less learning of the agriculture parameters, and less information
about the developing innovations. In the past agribusiness structure our people of old avoid the use of
a specific development for specific plant growth, they rather used regular marvel for all plants. The
technological change in the agriculture can develop plants under uncommon normal natural
conditions, also this develops specific plants under specific condition which in turn help to get more
yield and less compost. Presently the advancement of precision agriculture in green house, for plant
development has turned out to be prominent on account of less cost innovations for the agriculturists
to re-arrive yield. The greenhouse is a house like a structure covered with a transparent material,
which can keep up controlled temperature, required moistness level, light infiltration and so on, for the
healthy plant growth. The precision agriculture is a framework which incorporates detecting,
measuring, and responding. It is a technique for recognizing greenhouse climate, at that point
identified data is sent to the cloud and afterward required action taken by the agriculturist in view of
the received data. This can be expert by the present advancement called Internet of Things (IoT), it is
the innovation which is interface with everything or every contraption by techniques for web. The
précised agriculture framework going towards its improvement, in light of the innovative progression
in Wireless Sensor Networks (WSN) that is nothing but an IoT. The irreregular climate conditions for
the plants in greenhouse will influence the development of the plants, and less yield toward the end of
the cultivation. So, that it is necessary to control and monitor the greenhouse parameters, for example,
CO2, soil moisture, temperature, light and so on.
OBJECTIVE:
This paper presents a state-of-the-art survey of applications of wireless sensor networks in marine
environment monitoring. It first describes fundamentals of WSNs-based marine environment
monitoring, including application areas, a common WSN architecture, a general sensor node
architecture, sensing parameters and sensors, and wireless communication technologies. In a WSN-
based marine environment monitoring system, various kinds of sensors are used to monitor and
measure different physical and chemical parameters such as water temperature, pressure, wind
direction, wind speed, salinity, turbidity, pH, oxygen density, and chlorophyll levels. WSN-based
marine environment monitoring has a broad coverage including a number of application areas: water
quality monitoring, ocean sensing and monitoring, coral reef monitoring, and marine fish farm
monitoring. Different application areas require different WSN system architectures, communication
technologies, and sensing technologies. A water quality monitoring system is usually developed to
monitor water conditions and qualities including temperature, pH, turbidity, conductivity and
dissolved oxygen (DO) for ocean bays, lakes, rivers and other water bodies. An ocean sensing and
monitoring system is used to monitor ocean water conditions and other environmental parameters. A
coral reef monitoring system is normally installed to monitor coral reef habitats using an autonomous,
real-time and in-situ wireless sensor network. A marine fish farm monitoring system is developed to
monitor water conditions and qualities including temperature and pH, and accurately quantify the
amount of fecal waste and uneaten feed for a fish farm.
Advantages:
Its electronic devices must be in a waterproof housing to avoid water damage.
The monitoring system should have a strong stability against adverse atmospheric conditions.
Disadvantages:
REF [2] " Management of Climatic Factors for Successful Silkworm (Bombyx
mori L.) Crop and Higher Silk Production”
(2012)
The proposed system discuss about the role of temperature and humidity on growth and development
of silkworm including recent studies on heat shock protein. Silkworm is one of the most important
domesticated insects, which produces luxuriant silk thread in the form of cocoon by consuming
mulberry leaves during larval period. The growth and development of silkworm is greatly influenced
by environmental conditions. Temperature plays a vital role on the growth of the silkworms. As
silkworms are cold-blooded animals, temperature will have a direct effect on various physiological
activities. In general, the early instar larvae are resistant to high temperature which also helps in
improving survival rate and cocoon characters. Humidity plays a vital role in silkworm rearing and
its role is both direct and indirect. The combined effect of both temperature and humidity largely
determines the satisfactory growth of the silkworms and production of good-quality cocoons. It
directly influences the physiological functions of the silkworm. The young-age silkworms can
withstand to high humidity conditions than later-age worms and under such condition, the growth of
worm is vigorous. Like other animals, silkworms also require fresh air. By respiration of silkworms,
carbon dioxide gas is released in the rearing bed. The effect of temperature on the growth and
development of silkworm has been studied extensively; however, much attention has not been paid
on the effect of temperature on embryonic development. It has been reported that in exothermic
organisms, when rate of development is plotted against temperature, a sigmoidal curve is obtained
with an almost linear correlation in central temperature range. Temperature is a parameter in
developmental cycle, which can be manipulated experimentally, but its effect is very complex for
interpretation.
Advantages:
The contribution of genetic and environmental factors on growth and development of silkworm and
its important economic traits.
Disadvantages:
Difficult to maintains
June (2017)
In sericulture, it is established fact that several factors contribute in the growth and
development of silkworm for the production of quality eggs. Temperature and humidity
are key environmental factors that influence the physiology of insects. The range of
adaptations to changing environments and maintenance of homeostasis is a complex
and dynamic display of species inherent potential to keep internal changes within
tolerable limits under wide fluctuations in their surroundings. The silkworm is sensitive
to environmental fluctuations and unable to survive
naturally due to continuous domestication since the dawn of sericulture. The larvae of
eleven silkworm lines (M-101, M-103, M-104, M-107, Pak-1, Pak-2, Pak-3, Pak-4,
PFI-1, PFI-2 and S-1) were reared. The eggs were incubated at optimum conditions of
temperature, relative humidity and light/darkness ratio (12hr: 12hr). The eggs were
spread on sheets in single layer to ensure uniform conditions for all the eggs and at pin
head stage complete darkness was provided (black boxed) to ensure uniform hatching.
The rearing rooms and all the appliances were washed, cleaned
The study suggests that fecundity and egg fertility can be enhanced by avoiding
temperature and humidity fluctuations during larval rearing.
Disadvantages:
Imagine a smart greenhouse growing tomatoes. The WSN detects that the temperature
inside the greenhouse is rising above optimal levels. The system automatically triggers
ventilation fans and adjusts the shading. Simultaneously, soil moisture levels are
monitored, and the irrigation system only activates when necessary, ensuring water is
not wasted. The farmer receives real-time data on their mobile phone, alerting them to
any issues like CO2 levels or soil pH imbalances, and they can remotely adjust settings
if needed.
In conclusion, the integration of wireless sensor networks and IoT into greenhouse
monitoring systems offers numerous advantages in terms of automation, efficiency, and
sustainability. By continuously monitoring and controlling environmental parameters,
greenhouse operators can optimize growth conditions and reduce resource
consumption, leading to higher productivity and lower operational costs.
Advantages:
• IOT-Based Smart Gloves: Bridges communication gaps effectively. Promotes inclusivity and
professional growth for disabled individuals
• Gesture Recognition Using 1D-CNN: High accuracy (97.96%) and real-time response. Portable and
efficient due to smartphone integration.
• Indian Sign Language System: Supports culturally relevant communication using Indian sign
language. Cost-effective hardware implementation
Disadvantages:
• IOT-Based Smart Gloves: Limited gesture vocabulary. Dependence on specific hardware and sensors.
• Gesture Recognition Using 1D-CNN: Requires pre-trained models for specific gestures. Dependence
on smartphone infrastructure and Bluetooth connectivity.
The new milestone in computer communication is Internet of Things (IoT), gaining importance
because of wide variety of application in project developments. The IoT is furnishing people with , the
remote applications such as smart agriculture, smart environment, smart security, and smart cities etc.
The IoT has essentially, increased the remote distance control and variety of interconnected things or
devices, which becomes an interesting aspect.This paper discuss about an IoT application for smart
agriculture. The paper proposed a remote sensing of agriculture parameters and control system to the
greenhouse agriculture. The plan is to control CO2, soil moisture, temperature, and light, based on the
soil moisture the controlling action is accomplished for the greenhouse windows/doors based on crops
once a quarter complete round the year. The objective is to increase the yield and to provide organic
farming. The result shows the remote controlling of greenhouse parameters.
Advantages:
Disadvantages:
Internet of Things is one of the most important technologies of the 21st century. Smart green House
system is basically a system in which various sensors are used for controlling and monitoring various
parameters inside a greenhouse such as temperature, pressure, humidity, soil moisture, ph sensors etc.
And green house is basically a place or we can call it an environment where plants like vegetables and
flower and grown and they are usually covered with glass or ''translucent plastic roofs". The purpose
of this project is to design an easy, easy to install, user-friendly to monitor and trace the values of
parameters such as temperature, humidity, natural sunlight which are continually monitored and
controlled with an aim to optimize them for getting maximum possible plant increase and yield.
Advantages:
Easy to use
Easy to implement
Disadvantages:
REF [7] “Greenhouse Monitoring and Control Based on IOT Using WSN”
April (2018).
This paper presents a monitoring and control system for greenhouse through Internet of Things(IOT).
The system will monitor the various environmental conditions such as humidity, soil moisture,
temperature, presence of fire, etc. If any condition crosses certain limits, a message will be sent to the
registered number through GSM module. The microcontroller will automatically turn on the motor if
the soil moisture is less than a particular value. A color sensor will sense the color of the leaves and
send message. The prototype was tested under various combinations of inputs in our laboratory and
the experimental results were found as expected.
Advantages:
This project are build greenhouse with automatic monitoring and controlling system.
The advantages of this project is automatically control environmental conditions within greenhouse
allowing any type of plants to be grown all year around.
Disadvantages:
REF [9] “IOT Based Smart Greenhouse Automation Using Arduino” Year
(2017).
Greenhouse Automation System is the technical approach in which the farmers in the rural areas will
be benefitted by automatic monitoring and control of greenhouse environment. It replaces the direct
supervision of the human. In this paper the different papers have been reviewed and developed the
proposed system based on the limitation in the present monitoring system. It also focuses on the
Generic Architecture which can be applied for many other Automation Application. Greenhouse is a
building where plants are grown in a controlled manner. Nowadays due to urbanization and lack of
land availability there is a great need to construct the Greenhouses which will be reserved mainly for
growing crops. With the advancement of technology we can control and monitor the multiple
Greenhouses using IOT from the central location wirelessly.
Advantages:
Disadvantages:
REF [10] “Smart Green House using IOT and Cloud Computing”
Year (2018).
Smart Green House android app is succeed to observe and managing the microclimatic environment
inside a Green House. From the green house easily get soil moisture, humidity and temperature
sensor value to android app , according to sensors values and we set predefined threshold values for
each sensor ,depending on sensor readings we are going to control using water sprayer , cooling fan ,
rooftop and focus light and just press the button in android app we can make on/off motors and it
also has datasheet of all horticulture plantation and season wise precaution material for monitoring
and controlling. The intention of this project is to design a simple, easy to install, user friendly to
monitor and record the values of temperature, humidity, soil-moisture and sunlight of the natural
environment that are continuously modified and controlled in order optimize them to achieve
maximum plant growth and yield. The result shows that the situation specified in sensor‘s database
and system in actually is proper. The achieved test result concludes that the system is working
properly
Advantages:
Disadvantages:
The water and electric bills will more than likely rise to heat and cool the inhabitants of the
greenhouse
2.2 PROBLEM STATEMENT
The increasing global population and the growing demand for food have led to
the need for more efficient and sustainable agricultural practices. Greenhouse
farming, which offers controlled environments to optimize crop growth, is an
emerging solution. However, managing and maintaining optimal conditions for
crops inside a greenhouse requires continuous monitoring of various
environmental parameters, such as temperature, humidity, soil moisture, light
intensity, and carbon dioxide levels. These parameters directly impact crop
growth and productivity.
In traditional greenhouse farming, farmers rely on manual monitoring and intervention, which is
time-consuming, labor-intensive, and prone to human error. Additionally, the lack of real-time data
makes it difficult for farmers to respond swiftly to changing conditions or to predict future trends,
often resulting in suboptimal growth conditions and reduced crop yield.
Proposed Solution:
This project aims to design and implement a system for the remote sensing and controlling of
greenhouse agriculture parameters using Internet of Things (IoT) technologies. The system will
consist of a network of sensors placed in the greenhouse to continuously monitor key environmental
factors like temperature, humidity, soil moisture, light intensity, and air quality. The data from these
sensors will be transmitted to a central server or cloud-based platform, where it can be analyzed in
real-time.
Farmers will be able to remotely monitor the greenhouse conditions via a web or mobile application.
Based on the collected data, the system will also include an automated control mechanism that
adjusts key environmental parameters, such as controlling temperature, humidity, or irrigation, based
on predefined thresholds or machine learning algorithms. This will ensure that crops grow under the
optimal conditions while reducing resource wastage and labor costs.
Key Objectives:
Remote Monitoring:
To design a system that allows farmers to remotely monitor the greenhouse parameters via IoT
sensors and a user-friendly interface.
Automated Control:
To develop an automated mechanism that adjusts environmental conditions based on real-time
sensor data.
Data Analysis:
To implement a data analytics platform that helps farmers make informed decisions about crop
management and resource utilization.
Energy Efficiency: To optimize the use of energy and resources such as water, light, and heat
through intelligent control systems, contributing to sustainability in agriculture.
Expected Outcome:
A greenhouse is the perfect way to speed up growth, ripen your tomatoes, extend the gardening season
or perhaps grow your vegetables all year long. The objective is to increase the yield and to provide
organic farming.
Greenhouses provide much needed protection, shielding delicate plants from harsh winds, frost,
snow, hail and other elements of nature that can damage or destroy plant life.
but that's not the only benefit of growing plants in a greenhouse. Most plants, particularly fruits and
vegetables, need warmth, sunlight and adequate moisture for healthy growth..
A greenhouse is the perfect way to speed up growth, ripen your tomatoes, extend the gardening season
or perhaps grow your vegetables all year long. The objective is to increase the yield and to provide
organic farming.
CHAPTER 3
PROPOSED SYSTEM
A. IoT Sensors
These sensors will continuously monitor various environmental parameters within the greenhouse.
Common sensors include:
Temperature Sensor (e.g., DHT22, LM35)
Humidity Sensor (e.g., DHT11, AM2302)
Soil Moisture Sensor (e.g., capacitive soil moisture sensors)
Light Intensity Sensor (e.g., LDR - Light Dependent Resistor)
CO2 Sensor (for monitoring carbon dioxide levels in the greenhouse)
pH Sensor (to measure soil or water pH for optimal nutrient uptake)
Air Quality Sensor (to monitor the level of harmful gases or particulate matter)
B. Actuators
The system will use actuators to control the greenhouse environment based on the data provided by
the sensors. Examples of actuators include:
Automated Irrigation System: Controlled based on soil moisture readings to optimize water use.
Fans & Humidifiers: Adjusting the temperature and humidity by turning on/off fans or
humidifiers based on sensor readings.
LED Grow Lights: Adjusting light intensity or duration for optimal plant growth.
Ventilation System: Opening or closing vents to regulate temperature and airflow in the
greenhouse.
Heating System: Adjusting temperature when necessary to maintain optimal growing conditions.
C. Central Control Unit
Microcontroller/Development Board: The brain of the system, such as Raspberry Pi or
Arduino, will collect data from sensors and send commands to actuators.
Connectivity Module: A Wi-Fi or GSM module (e.g., ESP8266, ESP32) will transmit sensor data
to the cloud server.
Edge Computing: In case of low latency, certain processing could happen on the edge (on the
microcontroller), where simple thresholds or machine learning models are used to make real-time
decisions.
D. Cloud Platform and Server
Data Storage: Sensor data is uploaded to a cloud server, such as AWS, Google Cloud, or
Microsoft Azure. This data is stored in databases like MySQL or MongoDB for future retrieval.
Real-time Monitoring: The cloud server facilitates remote monitoring of greenhouse parameters,
providing access to real-time data via a user-friendly interface.
Data Analytics: Historical sensor data can be analyzed to identify patterns, trends, and anomalies.
Machine learning models or data analytics can predict future conditions, optimize irrigation
schedules, and suggest environmental changes.
Notification System: The cloud server can send alerts via email or SMS when a parameter exceeds
a predefined threshold (e.g., temperature too high, humidity too low).
E. User Interface
Mobile App or Web Portal: A user-friendly interface allows greenhouse operators to monitor
environmental conditions remotely. The app provides:
Real-time status of temperature, humidity, soil moisture, etc.
Alerts/Notifications for abnormal conditions (e.g., temperature rise, low moisture).
Control Panel to turn on/off actuators like fans, lights, or irrigation systems.
Reports for analyzing historical data and trends.
F. Data Analytics Engine
Predictive Models: By applying machine learning algorithms (such as linear regression, decision
trees, or neural networks), the system can predict environmental changes and automate responses.
For example:
Predict the next irrigation cycle based on soil moisture trends.
Adjust temperature and humidity automatically based on weather forecasts and historical data.
Optimization Algorithms: The system can recommend energy-efficient actions, such as adjusting
light usage or ventilation to minimize electricity consumption.
3 . Communication Architecture
4 . System Workflow
Data Collection: Sensors in the greenhouse continuously collect data on environmental parameters
(temperature, humidity, light, etc.).
Data Transmission: The data is transmitted wirelessly to the cloud server via a microcontroller.
Real-time Monitoring: Users can view real-time data and monitor greenhouse conditions through
a mobile app or web portal.
Data Analysis & Control: Based on sensor readings and historical data, the system analyzes trends
and takes appropriate actions to adjust parameters automatically (e.g., turn on irrigation, adjust fan
speed).
Feedback to User: If any parameter exceeds set thresholds, the system sends alerts to
the user. The user can then take manual actions or allow the system to correct the issue.
5. System Benefits
Remote Monitoring: Allows greenhouse managers to monitor and control parameters remotely,
ensuring optimal conditions even when not on-site.
Automation: Automated adjustments of environmental conditions based on real-time data reduce
the need for manual intervention.
Data-Driven Decisions: Historical data analysis helps in making informed decisions regarding
crop growth and resource utilization.
Resource Efficiency: Optimizes resource use, such as water and energy, through intelligent control
of irrigation, lighting, and heating systems.
Sustainability: Reduces the environmental footprint of greenhouse farming by minimizing
resource wastage and maximizing crop yield.
Network Reliability: Ensuring a reliable wireless network in remote areas for consistent data
transmission.
Power Consumption: IoT devices and sensors should be designed to consume low power for long-
term sustainability.
System Security: Ensuring data privacy and securing communication between devices and the
cloud to prevent unauthorized access or attacks.
Block diagram
Figure 1: Block diagram of Proposed System
(2)Temperature Sensor :
(3)Mq9 Sensor :
The MQ-9 gas sensor plays a critical role in an IoT-based greenhouse management
system by continuously monitoring hazardous gases. It detects the presence of gases
like carbon monoxide, methane, and LPG and provides real-time data that can be
used to automate control systems, such as ventilation and air purification. The
system’s ability to provide alerts and trigger safety protocols ensures that the
greenhouse environment remains safe and optimal for both plants and workers.
(4)Servo Motor :
In an IoT-based greenhouse system, the servo motor plays a vital role in automating
environmental control. It adjusts the position of ventilation windows, shading
systems, or other mechanical devices based on sensor inputs, ensuring optimal
conditions for plant growth. The feedback loop and PWM control allow for precise
and accurate positioning of the servo motor, which is crucial for tasks like
maintaining temperature, humidity, and light levels.
By integrating servo motors into the IoT system, greenhouse operators can ensure that
the plants are provided with the best possible growing conditions while also enabling
remote monitoring and control. This enhances the overall efficiency and sustainability
of greenhouse operations.
• Controlling the upper lid is based on the in house mq9 sensor is fitted with the
microcontroller board. When co2 will be high then upper lid should be open
automatically
The control sprayer in an IoT-based greenhouse system plays a vital role in ensuring
that plants receive the right amount of water, nutrients, or pesticides based on
environmental conditions. By using data from environmental sensors (temperature,
humidity, soil moisture), the microcontroller makes real-time decisions to activate the
sprayer only when needed. The system can be automated for convenience, controlled
remotely through mobile or web applications, and optimized for energy and resource
efficiency.
Overall, the control sprayer provides an effective, automated, and intelligent solution
for maintaining healthy plant growth in a greenhouse while reducing the need for
manual intervention and ensuring optimal use of resources.
• The greenhouse is fitted with a DHT11 sensor that can sense the humidity level.
Inside the Greenhouse sensor is connected with the microcontroller and the
microcontroller board reads level using the analog pins. The sensor operates at 5 volt,
if the gas level reaches the threshold it triggers the exhaust fan so that the unwanted gas
can go out of the greenhouse. The exhaust fan operates at AC current circuit so it is
connected with relay.
CONTROL ALGORITHM :
3. Actuator Control
The decision made in Step 3 results in a control signal being sent to the corresponding actuators (via
GPIO pins or relays on the microcontroller). The actuators adjust the physical environment within
the greenhouse:
Fans: Turned on/off to adjust temperature or humidity.
Water Pumps: Turned on/off for irrigation.
Sprayers: Triggered for nutrient or pesticide application.
Ventilation Windows: Opened or closed for temperature and humidity control.
Artificial Lights: Turned on/off based on light intensity.
Heaters: Activated if temperature falls below the lower threshold.
The Arduino Integrated Development Environment (IDE) is a software platform used to write and
upload code to Arduino boards. Arduino programming is done using a simplified version of C/C+
+. It abstracts many low-level details, making it user-friendly. Arduino provides many built-in
functions for common tasks such as reading analog/digital inputs, controlling pins, and serial
communication. Arduino has a vast collection of libraries that simplify interfacing with various
sensors, displays, and communication protocols. Arduino IDE supports a variety of Arduino
boards and even other third-party boards. You can select the target board before uploading your
code. Once the code is written, it's uploaded to the Arduino board through a USB connection. The
Arduino IDE takes care of compiling the code and transferring it to the microcontroller
Arduino Integrated Development Environment (IDE) is an open source IDE that allows users to
write code and upload it to any Arduino board. Arduino IDE is written in Java and is compatible
with Windows, macOS and Linux operating systems.
The Arduino Integrated Development Environment - or Arduino Software (IDE) - contains a text
editor for writing code, a message area, a text console, a toolbar with buttons for common
functions and a series of menu. An integrated development environment (IDE) is a software
application that helps programmers develop software code efficiently. It increases developer
productivity by combining capabilities such as software editing, building, testing, and packaging
in an easy-to-use application. Arduino boards can operate satisfactorily on power that is available
from the USB port. It provides 5V DC voltage and can be sourced from the port from a PC, wall
socket adapter or portable power bank.
All the statements must end with a semicolon. Comments follow a // or begin with /* and end
with Void loop ( ) and Void setup ( ) are two mandatory functions. The setup section of the code is
simply run once when the Arduino board is first turned on or reset.
Programming and controlling the microcontroller is made possible by a smooth interface between
the Arduino Nano and the Arduino IDE. The first step is to install the Arduino IDE, a flexible and
easy-to-use program, on a suitable operating system like Windows, macOS, or Linux. A Mini-B
USB cable is used to connect the Arduino Nano to the computer after installation, guaranteeing
that it can transmit data and power. The Nano will be ready for programming when the power
LED illuminates after it has been connected.
By going to Tools > Board and selecting Arduino Nano, the user in the Arduino IDE chooses the
appropriate board and port. It may be necessary to provide the proper processor, such as the
ATmega328P (Old Bootloader), for more recent Nano models. Next, under Tools > Port, choose
the appropriate COM port linked to the Nano. Within the editor of the IDE, developers have the
option of writing their own program or loading pre-existing sketches. One popular tool for testing
the connection is the Blink sketch, which may be found under File > Examples.
The IDE's Library Manager must be used to install the necessary libraries if other hardware
components, like flex sensors or LCD screens, are being used. The Verify button is used to check
the code for faults after it has been created or altered, and the transfer button is used to transfer it
to the Nano. The program runs on the Arduino Nano after a successful upload, and real-time data
can be monitored or debugged using the Serial Monitor in the IDE
3.3 HARDWARE REQUIREMENTS
ARDUINO UNO :
Figure : 2
DHT 11
This DHT11 Temperature and Humidity Sensor features a calibrated digital signal output with the
temperature and humidity sensor capability. It is integrated with a high-performance 8-bit
microcontroller. Its technology ensures the high reliability and excellent long-term stability. This
sensor includes a resistive element and a sensor for wet NTC temperature measuring devices. It
has excellent quality, fast response, anti-interference ability and high performance.
Each DHT11 sensors features extremely accurate calibration of humidity calibration chamber.
The calibration coefficients stored in the OTP program memory, internal sensors detect signals in
the process, we should call these calibration coefficients. The single-wire serial interface system
is integrated to become quick and easy. Small size, low power, signal transmission distance up to
20 meters, enabling a variety of applications and even the most demanding ones. The product is
4-pin single row pin package. Convenient connection, special packages can be provided
according to users need.
Figure : 3
Relay:
This small Relay Board works from a 5V signal. It uses a transistor to switch the relay on so can
be connected directly to a microcontroller pin.
Features
4 Mounting holes
The moisture of the soil plays an essential role in the irrigation field as well as in gardens for
plants. As nutrients in the soil provide the food to the plants for their growth. Supplying water to
the plants is also essential to change the temperature of the plants. The temperature of the plant
can be changed with water using the method like transpiration. And plant root systems are also
developed better when rising within moist soil. Extreme soil moisture levels can guide to
anaerobic situations that can encourage the plant’s growth as well as soil pathogens. This article
discusses an overview of the soil moisture sensor, working and it’s applications.
The soil moisture sensor is one kind of sensor used to gauge the volumetric content of water
within the soil. As the straight gravimetric dimension of soil moisture needs eliminating, drying,
as well as sample weighting. These sensors measure the volumetric water content not directly
with the help of some other rules of soil like dielectric constant, electrical resistance, otherwise
interaction with neutrons, and replacement of the moisture content.
The relation among the calculated property as well as moisture of soil should be adjusted & may
change based on ecological factors like temperature, type of soil, otherwise electric conductivity.
The microwave emission which is reflected can be influenced by the moisture of soil as well as
mainly used in agriculture and remote sensing within hydrology.
Figure : 4
These sensors normally used to check volumetric water content, and another group of sensors
calculates a new property of moisture within soils named water potential. Generally, these sensors
are named as soil water potential sensors which include gypsum blocks and tensiometer.
This module also includes a potentiometer that will fix the threshold value, & the value can be
evaluated by the comparator-LM393. The LED will turn on/off based on the threshold value.
Working Principle
This sensor mainly utilizes capacitance to gauge the water content of the soil (dielectric
permittivity). The working of this sensor can be done by inserting this sensor into the earth and
the status of the water content in the soil can be reported in the form of a percent.
This sensor makes it perfect to execute experiments within science courses like environmental
science, agricultural science, biology, soil science, botany, and horticulture.
Specifications:
Agriculture
Landscape irrigation
Research
This is all about the soil moisture sensor. From the above information, finally, we can conclude
that this sensor is used to gauge the soil’s volumetric water content, which makes it perfect to
make experiments in the science field like agricultural science, soil science, horticulture,
environmental science, biology, and botany.
JUMPER WIRES :
Jumper wires are insulated conductors that are used to link devices in an electronic circuit or
components on a breadboard, either permanently or temporarily. Because they make it simple to
make changes and adjustments without soldering, they are a vital tool for circuit testing and
prototyping. Depending on the connector pins at each end, jumper wires can be classified as
male-to-male, male-to-female, or female-to-female. Usually composed of flexible wire with metal
connectors and plastic insulation, they guarantee dependable and reusable connections. Jumper
wires, which link power, ground, and signal lines between modules, sensors, and components, are
frequently used with breadboards and microcontrollers such as Arduino to make circuit assembly
simpler. When building a circuit, its color-coded insulation—black for earth, red for electricity,
etc.—helps keep things organized and lowers mistakes. For both novices and experts in
electronics, jumper wires are essential because they are robust and adaptable, facilitating rapid
and effective prototyping and experimentation.
CONCLUSION:
IoT is widely used in connecting devices and used to gather information. The system is designed
to remotely monitor the greenhouse parameters such as soil moisture, temperature, and light, this
information can be collected by the farmers with the help of cloud account and internet
connection. There is also controlling action taken automatically that is greenhouse windows/
doors roll on/off based on the soil moisture levels. Thus, the system will help the farmers to avoid
physical visit to the field, and increase the yield with the maintenance of précised parameters such
as soil moisture, temperature, and light in the greenhouse with the help of IoT.
Based on the ATmega328P microcontroller, the Arduino Nano is a small, light, and
multipurpose microcontroller board. It was created for electronics projects and embedded
devices, and it works especially well in applications with limited space. Because of its much
smaller form footprint and comparable capabilities to the Arduino Uno, the Nano is perfect for
projects that need to be portable and integrated into confined locations.
The Arduino Nano can communicate with a variety of sensors, actuators, and modules thanks to
its 14 digital input/output pins—six of which enable PWM (Pulse Width Modulation)—and 8
analogue input pins. With a clock speed of 16 MHz, it guarantees effective signal processing
and task execution. Although the board runs at 5V, it can accept external power supply with
voltages between 6V and 12V, providing power management flexibility. Additionally, it has a
small USB connector for power and programming, which makes connecting easier.
One of the Nano's standout features is its support for multiple communication protocols,
including UART, I2C, and SPI, enabling seamless integration with external devices like
displays, SD card readers, and communication modules. Its compatibility with the Arduino IDE
makes programming straightforward, even for beginners. Additionally, the Nano’s bread board
friendly design allows easy prototyping without additional hardware.
Whether used in robotics, IOT devices, or wearable electronics, the Arduino Nano combines
powerful features, low power consumption, and compact design, making it a favourite among
hobbyists and professionals for a wide range of applications.
JUMPER WIRES
Jumper wires are insulated conductors that are used to link devices in an electronic circuit or
components on a breadboard, either permanently or temporarily. Because they make it simple to
make changes and adjustments without soldering, they are a vital tool for circuit testing and
prototyping. Depending on the connector pins at each end, jumper wires can be classified as
male-to-male, male-to-female, or female-to-female. Usually composed of flexible wire with
metal connectors and plastic insulation, they guarantee dependable and reusable connections.
Jumper wires, which link power, ground, and signal lines between modules, sensors, and
components, are frequently used with breadboards and microcontrollers such as Arduino to
make circuit assembly simpler. When building a circuit, its color-coded insulation—black for
earth, red for electricity, etc.—helps keep things organized and lowers mistakes. For both
novices and experts in electronics, jumper wires are essential because they are robust and
adaptable, facilitating rapid and effective prototyping and experimentation.
POWER SUPPLY
Figure 12: Power Supply
Any electronic system must have a power source because it provides the electrical energy
required to run circuits and other devices. It transforms electrical energy into the proper
voltage, current, and form needed by the linked components from a source like a battery or
mains electricity. Power supply can be broadly divided into two categories: direct current (DC)
and alternating current (AC). DC is the most popular form for electronic projects that use
microcontrollers like Arduino. There are two types of power supplies: regulated and
unregulated. For delicate electronic devices, regulated power sources guarantee a steady output
voltage independent of input fluctuations or load changes. To protect linked components, they
could have features like current and overvoltage protection. Typical examples for portable
applications and prototypes include battery packs, USB power sources, and adapter-based
supply. In projects, the power supply needs to be in line with the system's voltage and current
specifications. For example, sensors, monitors, and other peripherals attached to Arduino
boards, which typically run at 5V or 3.3V, depend on the same supply. An essential component
of any circuit design, a dependable power supply guarantees steady operation and guards
against system failures brought on by power variations.
CHAPTER 5
REFERENCES
#include "DHT.h"
#define DHT11_PIN 3
#define mqpin A3
#define moisture1 A0
#define moisture2 A1
int sensorValue1 = 0;
int sensorValue2 = 0;
#define relay1 8
#define relay2 9
#define relay3 10
void setup() {
pinMode(DHT11_PIN,INPUT);
pinMode(mqpin,INPUT);
pinMode(moisture1,INPUT);
pinMode(moisture2,INPUT);
pinMode(relay1,OUTPUT);
pinMode(relay2,OUTPUT);
pinMode(relay3,OUTPUT);
Serial.begin(9600);
dht11.begin();
digitalWrite(relay1,HIGH);
digitalWrite(relay2,HIGH);
digitalWrite(relay3,HIGH);
void loop() {
//Serial.println("MQ "+String(mqvalue));
Else
digitalWrite(relay1,LOW);
delay(1000);
sensorValue1 = analogRead(moisture1);
if (sensorValue1 >950) {
digitalWrite(relay2,LOW);
Serial.println("relay2 ON");
delay(3000);
digitalWrite(relay2,HIGH);
}else {
digitalWrite(relay2,HIGH);
sensorValue2 = analogRead(moisture2);
if (sensorValue2 >950) {
digitalWrite(relay3,LOW);
Serial.print("relay3 ON");
delay(3000);
digitalWrite(relay3,HIGH);
Else
digitalWrite(relay3,HIGH);
Serial.println(data);
delay(1000);