Iot 9 Abhi
Iot 9 Abhi
Iot 9 Abhi
Experiment 9
1. Aim:
To develop an IoT-based system to optimize agricultural practices
2. Objectives:
• Learn about IoT based simulations.
• Testing and model in IoT based simulation platform.
3. Software/Components Used:
Arduino:
It is an open-source electronics platform. It consists ATmega328 8-bit Micro controller. It can be able to
read inputs from different sensors & we can send instructions to the micro controller in the Arduino. It
provides Arduino IDE to write code & connect the hardware devices like Arduino boards & sensors.
4. Procedure:
• Step 1: Setup the Arduino and Sensor Gather Components: Ensure you have all the necessary
components. Connect the Soil Moisture Sensor to the Arduino: VCC (Power): Connect the VCC pin
of the soil moisture sensor to the 5V pin on the Arduino. GND (Ground): Connect the GND pin of the
soil moisture sensor to a GND pin on the Arduino. Analog Output (A0): Connect the A0 pin of the
soil moisture sensor to an analog input pin (e.g., A0) on the Arduino.
• Step 2: Write the Arduino Code Open the Arduino IDE: Launch the Arduino IDE on your computer.
Write the Code. Connect the Arduino to your computer using the USB cable and upload the code to
the Arduino board.
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
• Step 3: Testing and Observation Open Serial Monitor: After uploading the code, open the Serial
Monitor from the Arduino IDE (Tools > Serial Monitor) to see the sensor readings. Take Readings:
Observe the sensor values as you place the sensor in different soil conditions: Dry Soil: Note the
sensor value in dry soil. Wet Soil: Note the sensor value in wet soil. Record Data: Record the sensor
values for different soil moisture levels.
• Step 4: Analyzing the Data Interpret Sensor Values: Higher sensor values typically indicate lower
moisture levels (dry soil), while lower sensor values indicate higher moisture levels (wet soil).
Calibrate if Necessary: Based on your observations, you might need to calibrate the sensor readings
for accurate moisture level interpretation
5. CODE:
6. Connections:
• Connect the VCC pin of the soil moisture sensor to the 5V pin on the Arduino.
• GND pin of the soil moisture sensor to a GND pin on the Arduino.
• Connect the A0 pin of the soil moisture sensor to an analog input pin (e.g., A0) on the Arduino.
7. Result:
Various connection has been for checking moisture of the soil
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
8. Conclusion:
By following the setup procedure, the Arduino Uno is ready for programming and communication with
the motor for various projects and experiments and understood the know-hows of a Soil moisture
sensor to measure the volumetric water content in soil. This knowledge can be applied to automate
irrigation systems in agriculture.