Leaf Graduation Program
Leaf Graduation Program
SMART FARM
Supervisor
Mr.Khaled Gouda
Class of 2023
Benghazi University
College of Information Technology
SMART FARM
المشرف
أ.خالد جودة
Class of 2023
Numbering
Table of Content
Chapter 1: Introduction
1.1 Overview …………………………….....……………….…....……..…....….…...1
1.2 Background …………………....…………...…….…….………..…........…........1
1.3 Aim and Objectives ……………………………….....…………….........….…....2
1.4 Motivation ……………………………………………….....................…...........2
1.5 Methodologies ………….……………………………………………..........….....2
1.6 Problem Statement.......…...............….…....….......…............…....….............3
1.7 Project Organization …….…………………...…....………………..........…...…3
Chapter 2: Project Requirements
2.1 Introduction ……....………...……....……..……......….....................…...........4
2.2 Project Requirements ……………....…………...…....….................................4
2.2.1 Hardware Requirements ….…...…......……...……………....….…................4
2.2.2 Software Requirements …………………………..….................…....….......25
Chapter 3: Simulation of the Project Circuit
3.1 Introduction……………….....…………....…...…………..………….....…...…28
3.2 Connected Servo Motor to ESP32 .......…….................................................28
3.3 Connected Relay Module 5V with Water Pump DC to ESP32 ......................29
3.4 Connected Relay Module 5V with LED to ESP32 ...................................... 30
3.4 Connected I2C LCD 4*20 to ESP32 …........................................................31
3.4 Connected Soil Moisture Sensor to ESP32 ……...........................................32
3.4 Connected LDR Light Dependent Resistor to ESP32 ……............................33
3.4 Connected Ultrasonic to ESP32 ……...........................................................34
3.4 Connected DH11 Sensor to ESP 32 …..........................................................35
3.4 Connected MQ-2 to ESP 32 ….....................................................................36
3.4 Connected Buzzer to ESP 32 ……................................................................37
3.5 Block diagram …………………………………….…...…...............................38
3.6 Simulation of Project Circuit ………....………………..…....….……....…..…39
3.7 Project Design ………………………………………...……........................….40
Chapter 4: Project Experiment Result
4.1 Introduction ….…….……………………………………....…...................…...41
4.2 Experiment 1.……….…….………...……………..…….............................….42
Numbering
4.3 Experiment 2…………….………………....………………....…..…….....…….43
4.4 Experiment 3……….….…………....……….……..…..................….…..….…44
4.5 Experiment 3……….….…………....……….……..…..................….…..….…45
4.6 Experiment 3……….….…………....……….……..…..................….…..….…46
4.7 Experiment 3……….….…………....……….……..…..................….…..….…47
4.8 Experiment 3……….….…………....……….……..…..................….…..….…48
4.9 Experiment 3……….….…………....……….……..…..................….…..….…49
4.10 Experiment 3……….….…………....……….……..…..................….…….…50
4.11 Flow Chart ………………………..………....………...……..…………..….…51
Chapter 5: Conclusion and Future Work
5.1 Conclusion ………………………..………………………………………...……52
5.2 Future Work ………………………………………..............….................……52
5.3 Reference …………….…………………………….......….................…...……53
Table of Figure
Figure (2.1): ESP32 ..........................................................................................5
Figure (2.2): Tower Pro SG90 Servo Motor......................................................10
Figure (2.3): Rela y Module 5V .......………........……….............................…...11
Figure (2.4): Water Pump DC……....…………………...….............................…12
Figure (2.5): LED …..………........………………......………......……..........…...13
Figure (2.6): I2C LCD 4*20 .......….……...……...........................................….14
Figure (2.7): Soil Moisture Sensor.……….….......................……........…...……16
Figure (2.8): LDR ………....….................………….…….....…..........….….......17
Figure (2.9): Resistor ....………………………….........…...........................……18
Figure (2.10): Ultrasonic..………....…....…..…........................…………………19
Figure (2.11): DH11 Sensor ..…....….…………………..…….….…...............….20
Figure (2.12): MQ-2 Sensor ..……….……....…………..…….….…...............….21
Figure (2.13):Buzzer ……………….……………….…............….............………22
Figure (2.14):Blynk………....…….……………….…..….........................………23
Figure (2.15):Arduino IDE…………....….………….....….…..….............………26
Figure (3.1):Tower PRO SG90 Servomotor………..................…............………28
Figure (3.2):Relay Module 5V with Water Pump DC ……......……........………29
Numbering
Figure (3.3):Relay Modul 5V With LED …………...…….…..….............………30
Figure (3.4):I2c lcd 4*20 …….....……….…..….............…........................……31
Figure (3.5): Soil Moisture Sensor .….……..............……..........................…...32
Figure (3.5): LDR (Light Dependent Resistor) .….....……...…...................…...33
Figure (3.5): Ultrasonic .….…………........................................................…...34
Figure (3.8): DHT11 Sensor ...…....…..........................................................…35
Figure(3.9): MQ-2 Sensor …………..…… ………...…......…....................….…36
Figure (3.10): Buzzer…...................................................................................37
Figure (3.11): Block Diagram ...…....…...…................................................…38
Figure(3.12): Project Circuit Design …………..…………......…...…......…….…39
Figure(4.1): Experiment Servo Motor …………..…………....…...…......…….…40
Figure(4.2): Experiment Relay Module 5V ……….........….......………..…….…41
Figure(4.3): Experiment Water Pump DC …………..…...….....……...……….…42
Figure(4.4): Experiment i2c lcd 4*20 …………..………….......…......…....….…43
Figure(4.5): ExperimentSoil Moisture Sensor …………......………........…….…44
Figure(4.6): Experiment LDR (Light Dependent Resistor) …………......…….…45
Figure(4.7): Experiment Ultrasonic …………..……....……...…......….......….…46
Figure(4.8): Experiment DH11 Sensor …………..………...……...…......…….…47
Figure(4.9): Experiment MQ_2 Sensor ………..………….....…...…......…….…48
Figure(4.10): Experiment Buzzer ………..………....…...…....................…….…49
Figure (4.11): Flow Chart of the project…………....…....………...............….…50
Introduction
Chapter 1
1.1 Overview
This chapter provides an overview of the project, the aim and
objectives,motivations,methodologies and Project organization.
1.2 Background
Modern technological applications in agriculture are of great importance.
The “Internet of Things” in agriculture means the use of sensors and
connected devices to manage water, lighting, humidity, temperature, and
protection to increase the quality and quantity of production. An
agricultural system based on the Internet of Things can be installed in the
fields to provide more productive and sustainable agricultural production.
This system can be very useful whether you have a large or small farm.It
improves the control of water sprinklers by turning on the irrigation from
the phone or computer with a simple application. He also monitors caged
animals and provides food and water when needed.
1
Introduction
Chapter 1
1.4 Motivation
Farms are among the important things in human life in terms of the
availability of food products such as fruits, vegetables and animal products,
but the owners nowadays suffer from a large number of expenses and lack of
time to take care of the crops. Hence the idea of our project to help farmers.
1.5 Methodologies
This section explains how to do the work:
Monitoring and controlling the farm up-to-date.
Identifying farmers' problems to explain the idea of the project to solve
these problems.
Determine hardware requirements for problem resolution.
Determine software requirements that are supported by hardware
requirements.
Design p roject outline.
Executing the project code and uploading it to ESP32.
Test department project.
Evaluate the prototype project based on the previous steps.
2
Introduction
Chapter 1
Decline in product quality: Without proper care, the quality of crops and
animal products can deteriorate, affecting their market value and demand.
3
Project Requirements
Chapter 2
Software Requirements
2.1 Introduction
Implementing a smart farm system requires the use of many different
technologies. The separation passes through the use of ESP32, the
implementation of the smart farm system will require the use of software to
control the various sensors and devices used in the system. The basic
software requirements that you will need to build a smart farm system are
outlined in this chapter.
4
Project Requirements
Chapter 2
ESP32
ESP32 is a microcontroller and Wi-Fi and Bluetooth-enabled system-on-chip
(SoC) produced by Espressif Systems. It is a powerful and versatile chip that
has gained popularity among developers due to its low cost and rich feature
set. Check Figure (2.1):
5
Project Requirements
Chapter 2
Power
The ESP32 microcontroller requires a power source to operate, and the
specific power requirements depend on the application and the connected
devices. Here are some common power sources for the ESP32:
USB Power: The ESP32 can be powered via a USB connection using a
USB cable connected to a computer or a USB power supply.
Battery Power: The ESP32 can be powered via a battery. The voltage and
capacity of the battery depend on the application and the power
requirements of the connected devices.
External Power Supply: The ESP32 can also be powered by an external
power supply, such as a DC power supply or a wall adapter. The voltage
and current rating of the power supply should match the requirements of
the ESP32 and the connected devices.
Solar Power: The ESP32 can be powered by a solar panel connected to a
battery or a power regulator. This is useful for outdoor or remote
applications where a traditional power source is not available.
It is important to choose the appropriate power source based on the power
requirements of the application and the connected devices. In addition, the
ESP32 has power-saving modes and features that can help to reduce power
consumption and extend battery life, making it a good choice for energy-
efficient applications.
The ESP32 microcontroller has several power pins that are used to supply
power to the chip and connected devices. Here is a brief overview of the
power pins on the ESP32:
6
Project Requirements
Chapter 2
Memory
The ESP32 has RAM and flash memory for data and code storage. It has
520KB of internal SRAM, 4MB of internal flash memory for program code,
and PSRAM for additional RAM.
7
Project Requirements
Chapter 2
Input and O utput
The ESP32 microcontroller has a variety of input and output options that can
be used for interfacing with external devices. Here are some of the input and
output options available on the ESP32:
Input:
GPIO (General Purpose Input/Output) pins: The ESP32 has 34 GPIO pins,
which can be used for both input and output operations. These pins can be
configured to detect digital inputs from buttons, switches, sensors, and
other devices.
Analog pins: The ESP32 has 18 analog input pins, which can be used to
measure analog signals from sensors such as temperature sensors, light
sensors, and potentiometers.
Capacitive touch pins: The ESP32 has 10 capacitive touch pins, which can
be used to detect touch input from buttons, sliders, and other touch-
sensitive devices.
I2C (Inter-Integrated Circuit) pins: The ESP32 has 2 I2C pins, which can
be used to communicate with I2C devices such as accelerometers,
gyroscopes, and other sensors.
Output:
GPIO (General Purpose Input/Output) pins: The ESP32's GPIO pins can
also be used for output operations, such as driving LEDs, motors, and
other devices.
PWM (Pulse-Width Modulation) pins: The ESP32 has 16 PWM pins,
which can be used to generate analog output signals for controlling the
brightness of LEDs, the speed of motors, and other analog devices.
I2S (Inter-IC Sound) pins: The ESP32 has 2 I2S pins, which can be used
to transmit and receive digital audio signals.
8
Project Requirements
Chapter 2
ESP32 Features:
Dual-core processor: The ESP32 has two Xtensa LX6 processor cores,
which can run at up to 240 MHz. This provides high processing power for
a wide range of applications.
Wi-Fi and Bluetooth connectivity: The ESP32 has built-in Wi-Fi and
Bluetooth connectivity, which allows it to communicate wirelessly with
other devices and connect to the internet.
Low-power operation: The ESP32 is designed to be energy-efficient, with
multiple power-saving modes and an ultra-low-power co-processor.
Memory: The ESP32 has 520KB of internal SRAM, 4MB of internal flash
memory, and PSRAM for additional RAM.
Input/output options: The ESP32 has a variety of input and output
options, including GPIO pins, analog pins, capacitive touch pins, PWM
pins, I2C pins, I2S pins, UART pins, and SPI pins.
Security features: The ESP32 includes hardware-based security features
such as secure boot, flash encryption, and cryptographic accelerators.
Development tools: The ESP32 is supported by a variety of development
tools and programming languages, including the Arduino IDE,
MicroPython, and the ESP-IDF (Espressif IoT Development Framework).
9
Project Requirements
Chapter 2
T o w e r P r o S G 9 0 S e r v o M o t o r
The Tower Pro SG90 9g mini servo motor is the most commonly used in RC
applications. The servo motors are used for control applications that require
precision control like robot arm positioning, and tool position in machining
equipment. The servo motors usually provide control over the 180° range.
This angular position control is performed by the PWM technique so by
varying its duty cycle you can control the angular position of the motor. This
servo motor can lift a maximum of 1.6 kg when suspended at a 1cm distance
from the shaft. It can also be used in robotic arms, CNC machines, Steering
systems on RC cars, and other robotic or automation applications as well.
check Figure (2.2).
Specificati ons
Operating Voltage: 3V to 7.2V
Stall torque @4.8V: 1.2 kg-cm
Stall torque @6.6V: 1.6 kg-cm
Gear Type Plastic
Weight of Motor 9gms
10
Project Requirements
Chapter 2
Product Description
To use this motor, you have to use something which can generate
PWM signals which can be anything from 555 Timer IC to other
microcontrollers
like Arduino, Raspberry Pi, PI, C, etc. Power the motor with VCC
and GND pins and control the movement of the shaft by PWM input
to it. 1×Tower Pro SG90 Servo Motor - 9 gms Mini/Micro Servo
Motor.
RELAY MODULE 5V
11
Project Requirements
Chapter 2
VCC: This pin is used to supply power to the relay module. It is usually
connected to a 5V power source.
GND: This pin is the ground connection for the relay module.
IN: This is the input pin for the relay control signal. It is typically
connected to a digital output pin on a microcontroller or other control
device.
COM: This is the common connection for the relay switch contacts.
NO: This is the normally open connection for the relay switch contacts. It
is connected to the COM pin when the relay is activated.
NC: This is the normally closed connection for the relay switch contacts.
It is disconnected from the COM pin when the relay is activated.
12
Project Requirements
Chapter 2
LED
13
Project Requirements
Chapter 2
14
Project Requirements
Chapter 2
the LCD 4x20 requires 16 pins for communication, including power and
ground pins, pins for data and control signals, and pins for adjusting the
contrast and turning on the backlight.
The LCD 4x20 typically uses a parallel interface for communication with
a microcontroller or other devices. This means that it requires multiple
pins to send data and commands to the display. The specific pinout may
vary depending on the manufacturer and model, but typically, the LCD
4x20 requires 16 pins for communication, including power and ground
pins, pins for data and control signals, and pins for adjusting the contrast
and turning on the backlight.
The LCD 4x20 can display a range of characters, symbols, and numbers,
and it can be programmed to show various types of information, such as
sensor readings, status messages, and menus. It is also possible to create
custom characters and graphics on the display to enhance the user
interface and improve the functionality of the device.
Overall, the LCD 4x20 is a versatile and widely used display that is well-
suited for various applications requiring alphanumeric information. Check
Figure (2.6).
15
Project Requirements
Chapter 2
A typical soil moisture sensor consists of two or more probes that are
inserted into the soil. The probes are usually made of metal or other
conductive material, and they are connected to an electronic circuit that
measures the resistance between the probes. The amount of moisture in the
soil affects the resistance between the probes, so by measuring the
resistance, the sensor can determine the moisture content of the soil. Check
Figure (2.7).
VCC: This is the power supply pin for the sensor. It is usually connected
to a 5V or 3.3V power source.
GND: This is the ground connection for the sensor.
Analog Output Pin: This is the pin that provides an analog voltage output
that varies depending on the soil moisture level. This pin is typically
connected to an analog input pin on a microcontroller or other control
device.
Digital Output Pin: Some soil moisture sensors may include a digital
output pin that provides a high or low signal depending on the soil
moisture level. This pin is typically connected to a digital input pin on a
microcontroller or other control device.
16
Project Requirements
Chapter 2
Probe Pins: These are the pins that are inserted into the soil to measure
the soil moisture level. The number and configuration of these pins can
vary depending on the specific sensor design.
L D R ( L i g h t D e p e n d e n t R e s i s t o r )
17
Project Requirements
Chapter 2
R e s i s t o r
Lead 1: This is the first pin of the resistor and is usually marked with a
color band to indicate the value of the resistor. The lead 1 is also known
as the anode or positive lead.
Lead 2: This is the second pin of the resistor and is usually marked with
a color band as well. The lead 2 is also known as the cathode or negative
lead.
18
Project Requirements
Chapter 2
Ultrasonic
Ultrasonic refers to sound waves with a frequency higher than the upper
limit of human hearing, which is typically around 20 kHz. Ultrasonic
waves have a frequency range of 20 kHz to several gigahertz.
Ultrasonic waves are commonly used in various fields such as medical
imaging, industrial testing, and cleaning. Ultrasonic waves can penetrate
solid materials, making them useful for detecting flaws or cracks in
materials such as metals and plastics.
Overall, ultrasonic waves are a powerful tool in various fields due to
their ability to penetrate materials and provide valuable information
about the properties of those materials. Check Figure (2.10).
An ultrasonic sensor typically has four pins, two for power supply and two
for signal output:
The first pin is usually the VCC or power pin, which is connected to the
positive supply voltage of the circuit.
The second pin is the ground or GND pin, which is connected to the
negative supply voltage or ground of the circuit.
The third pin is the trigger pin, which is used to send a signal to the
sensor to start the measurement. When a signal is sent to this pin, the
sensor sends out an ultrasonic pulse.
19
Project Requirements
Chapter 2
The fourth pin is the echo pin, which is used to receive the echo signal
after the ultrasonic pulse has bounced off an object and returned to the
sensor. The sensor measures the time it takes for the ultrasonic pulse to
travel to the object and back, and this is used to calculate the distance to
the object.
20
Project Requirements
Chapter 2
The DHT11 sensor has four pins. Here's what each of the pins is for:
1. VCC: This pin is used to provide power to the sensor. It should be
connected to a 5V power supply.
2. Data: This pin is used to transmit data from the sensor to the
microcontroller. It is a digital output pin that uses a single-wire
communication protocol.
3. Not Connected (NC): This pin is not used and should be left
unconnected.
4. Ground (GND): This pin is used to provide a ground connection to the
sensor. It should be connected to the ground of the power supply.
MQ-2
MQ2 Gas sensor is a Metal Oxide Semiconductor (MOS) type Gas Sensor
mainly used to detect gases like Methane, Butane, LPG, Smoke, etc. It is also
known as Chemiresistors as the gas detection is based on the change of
resistance of the sensing material when the Gas comes in to contact. If you
want to measure a different type of Gas you can check these Gas Sensors.
MQ2 Gas sensor module works on 5V DC and uses around 800mW. It can
detect LPG, Smoke, Alcohol, Propane, Hydrogen, Methane and Carbon
Monoxide concentrations in a range of 200 to 10000 ppm.
21
Project Requirements
Chapter 2
The MQ-2 gas sensor typically has 4 pins, each of which serves a specific
purpose:
VCC: This pin is used to power the sensor and is typically connected to a
5V or 10V power source.
GND: This pin is used as the ground or reference point for the sensor and
is typically connected to the ground of the power source.
Analog Output: This pin provides an analog output voltage that varies
depending on the concentration of the gas being detected. This pin is
typically connected to an analog input pin of a microcontroller or other
electronic device.
Digital Output: Some versions of the MQ-2 sensor may also include a
digital output pin that provides a high or low signal depending on
whether the gas concentration exceeds a certain threshold. This pin can
be used to trigger an alarm or other action when gas levels are too high.
Buzzer
22
Project Requirements
Chapter 2
Blynk App
23
Project Requirements
Chapter 2
Operating System
The Blynk app is available for both Android and iOS mobile operating
systems. It can be downloaded from the Google Play Store for Android
devices and the App Store for iOS devices.
In addition to the mobile app, Blynk also provides a cloud-based platform
that manages the communication between the app and the hardware devices.
23
Project Requirements
Chapter 2
This platform runs on servers that are hosted and maintained by Blynk, and it
is accessible from any internet-connected device with a web browser.
Blynk also provides libraries and APIs for several hardware platforms,
including Arduino, Raspberry Pi, ESP8266, and others.
These libraries and APIs allow developers to easily integrate Blynk into their
IoT projects and create custom apps that communicate with their hardware
devices.
Overall, Blynk is a versatile platform that provides support for multiple
operating systems and hardware platforms, making it an ideal choice for IoT
prototyping and development. Check Figure (2.13).
24
Project Requirements
Chapter 2
Add the Blynk app widget to your Proteus project. The Blynk app widget
allows you to simulate the Blynk app and communicate with the virtual
pins on your microcontroller.
Connect the Blynk app widget to your virtual pins. This will allow you to
control and monitor your hardware devices using the Blynk app.
Test and debug your circuit. Proteus provides a range of debugging and
simulation tools that allow you to test and troubleshoot your circuit
before deploying it in the actual hardware.
Overall, Proteus is a powerful simulation software that can be used to
simulate Blynk-based IoT projects. By simulating your circuit in Proteus,
you can save time and reduce the risk of errors before deploying your
project in the actual hardware.
Operating System
Arduino IDE
The Arduino IDE or Arduino Software contains a text editor for writing code,
a message area, a text console, a toolbar with buttons for common functions,
and a series of menus. It connects to the Arduino hardware to upload
programs and communicate with them. Parts of the IDE. Check Figure (2.14).
25
Project Requirements
Chapter 2
Verify: Compiles and approves your code. It will catch errors in syntax
(like missing semicolons or parentheses).
Upload: Sends your code to the 101 board.
New: This button opens up a new code window tab.
Open: This button will let you open up an existing sketch.
Save: This saves the currently active sketch.
Se rial Monitor: This will open a window that displays any serial
information your 101 board is transmitting. It is very useful for
debugging.
Sketch Name: This shows the name of the sketch you are currently
working on.
Code Area: This is the area where you compose the code for your sketch.
Message Area: This is where the IDE tells you if there were any errors in
your code.
Text Console: The text console shows complete error messages. When
debugging, the text console is very useful.
Board and Serial Port: Shows you what board and the serial port
selections.
26
Project Requirements
Chapter 2
27
Simulation of the project Circuit
Chapter 3
3.1 Introduction
This chapter describes in detail the stages of the Smart Farm design, and
briefly discusses the components of the project, how to connect them with
the ESP32, and how the project works.
There are three pins in the Motor Tower Pro SG90 connected to the
ESP32 as follows. as shown in Figure (3.2).
We have connected the signal (S) pin of the SG90 driver to any PWM-
capable GPIO pin of the ESP32 controller. It is connected to GPIO18.
We have connected the power pin (VCC) of the SG90 motor to the 5V pin
of the ESP32 controller.
We have connected the ground (GND) pin of the SG90 motor to
the GND pin of the ESP32 controller.
28
Simulation of the project Circuit
Chapter 3
29
Simulation of the project Circuit
Chapter 3
30
Simulation of the project Circuit
Chapter 3
31
Simulation of the project Circuit
Chapter 3
32
Simulation of the project Circuit
Chapter 3
3 . 6 L D R ( L i g h t D e p e n d e n t R e s i s t o r )
33
Simulation of the project Circuit
Chapter 3
3.7 Ultrasonic
34
Simulation of the project Circuit
Chapter 3
35
Simulation of the project Circuit
Chapter 3
3.9 MQ-2
36
Simulation of the project Circuit
Chapter 3
3.10 Buzzer
Schematic diagram of the Smart Farm Figure (3.11) shows how the circuit
works.
37
Gas Sensor Buzzer
Temp
ESP32 Relay
LED
Sensor
Ultarasonic Servo
Sensor motor
38
Simulation of the project Circuit
Chapter 3
The following figure shows the circular design of the smart farm by proteus
simulation; It is an online tool for designing electronic circuits.
39
Project Experiment Result
Chapter 4
4.1 Introduction
This chapter focuses on testing the circuit design of a smart farm project.
Each trial is checked by the following components:
40
Project Experiment Result
Chapter 4
4.2 Experiment 1:
The Tower Pro SG90 servo motor has been tested, we need to connect the motor
to the ESP32 board through a digital pin. The digital pin helps us control the
motor's movements based on the code we upload to the board.Check out Figure
(4.1)
41
Project Experiment Result
Chapter 4
4.3 Experiment 2:
We used Blynk to test the relay module remotely. It sends commands to the
ESP32 via Wi-Fi to control the relay module to turn the sensors on and off.
check Figure (4.2).
42
Project Experiment Result
Chapter 4
4.4 Experiment 3:
we tested the water pump with the Blynk remote control. Send commands to
the ESP32 via Wi-Fi to turn the pump on and off. check Figure (4.3).
43
Project Experiment Result
Chapter 4
4.5 Experiment 4:
I has been tested I2C LCD 4x2 Connect the SDA and SCL pins of the display
to the corresponding pins on the ESP32. ,and VCC and GND pins of the I2C
LCD 4x2 display to the 5V and GND pins on the ESP32, respectively.. check
Figure (4.4).
44
Project Experiment Result
Chapter 4
4.6 Experiment 5:
I tested the soil moisture sensor by sending the moisture reading to a serial
port. Check out Figure (4.5).
45
Project Experiment Result
Chapter 4
4.7 Experiment 6:
I tested /]s by covering the sensor, it sends the reading on the serial port,.
Check out Figure (4.6).
46
Project Experiment Result
Chapter 4
4.8 Experiment 7:
Tested Ultrasonic Sensor Via ESP32 Association Distance readings from the
Ultrasonic Sensor will begin to appear in the Serial Monitor.check Figure
(4.7).
47
Project Experiment Result
Chapter 4
4.9 Experiment 8:
48
Project Experiment Result
Chapter 4
4.10 Experiment 9:
I tested the bell module by sending a message from the serial port to trigger
the bell. Check out Figure (4.9).
49
start
YES
System off End
50
Conclusion and Future Work
Chapter 5
5.1 Conclusion
After the completion of this project, the process of controlling the farm was
completed.
This was done remotely and the required instructions were read and sent to
the farm owner correctly through the control via a single ESP32 control,
which made the farm smarter and safer.
51
Conclusion and Future Work
Chapter 5
Moreover, the fault alert system can help provide accurate data on the
actual performance of equipment and devices, to help farmers make better
decisions about replacing or upgrading equipment.
In general, a fault alert system can help improve maintenance and repair
operations on the farm, and avoid potential problems with equipment and
devices, thus improving farm productivity and reducing costs.
Livestock monitoring: IoT sensors can be used to monitor the health,
location, and behavior of livestock. This data can be used to improve
feeding schedules, detect diseases early, and prevent animal theft.
Automated equipment: IoT-enabled machines can be used to automate
tasks such as planting, harvesting, and fertilizing. This can reduce labor
costs, increase efficiency, and improve accuracy.
Predictive analytics: IoT data can be analyzed in real-time to predict
weather patterns, crop production, and market demand. This can help
farmers make more informed decisions and improve their operations.
5.3 Reference
[1]-https://arduinogetstarted.com/tutorials/arduino-hardware-preparation
[2]-https://theplantbot.com/arduino-water-pump/. ↗
[3]-Gao, X., Zou, C., & Li, Y. (2020). Design of a smart agriculture system based
on the Internet of Things. IEEE Access, 8, 127298-127310.
[4]-Wang, Z., Li, Y., & Gao, X. (2021). A review of smart agriculture:
applications, technologies, and future prospects. IEEE Access, 9, 68568-68584.
[5]-Cheng, D., & Wang, L. (2021). A smart farm system based on wireless sensor
networks and cloud computing. Wireless Communications and Mobile Computing,
2021, 6624665.
[6]-Mohiuddin, M. N., Ahmed, M. U., & Al Mamun, M. A. (2021). Smart farming
using Internet of Things (IoT): A review. IEEE Access, 9, 40036-40052.
52