0% found this document useful (0 votes)
10 views2 pages

Arduino Plant Watering Project

The document outlines the components and steps needed to build an Automatic Plant Watering System using an Arduino. It describes how the soil moisture sensor triggers a water pump to irrigate the plant when the soil is dry. Additionally, it provides sample Arduino code for implementation and setup instructions for the system.

Uploaded by

mkabdo717
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Arduino Plant Watering Project

The document outlines the components and steps needed to build an Automatic Plant Watering System using an Arduino. It describes how the soil moisture sensor triggers a water pump to irrigate the plant when the soil is dry. Additionally, it provides sample Arduino code for implementation and setup instructions for the system.

Uploaded by

mkabdo717
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Automatic Plant Watering System (Arduino Project)

1. Components Needed
- Arduino Uno
- Soil moisture sensor
- Small water pump (5V) or servo to open valve
- Relay module (if using a pump)
- Jumper wires
- Breadboard
- Power supply (battery or USB)
- Small tubing (if needed)
- Container for water

2. How It Works
The soil moisture sensor detects how dry the soil is. When the soil is dry (below a certain value), the
Arduino turns on the water pump through the relay module. The pump waters the plant until the soil
is moist again.

3. Arduino Code

const int moisturePin = A0;


const int pumpPin = 7;
int moistureLevel = 0;
int threshold = 400;

void setup() {
pinMode(pumpPin, OUTPUT);
Serial.begin(9600);
}

void loop() {
moistureLevel = analogRead(moisturePin);
Serial.println(moistureLevel);
if (moistureLevel < threshold) {
digitalWrite(pumpPin, HIGH);
} else {
digitalWrite(pumpPin, LOW);
}
delay(1000);
}

4. Steps to Build
1. Connect the soil moisture sensor to A0, VCC, and GND.
2. Connect the relay to digital pin 7, and link it to the pump.
3. Place the pump tube in water and the outlet near the plant.
4. Upload the code to the Arduino using Arduino IDE.
5. Power the Arduino and test the system.

You might also like