Automatic Plant Watering System Using Arduino

by cakee in Circuits > Arduino

17 Views, 0 Favorites, 0 Comments

Automatic Plant Watering System Using Arduino

IMG_20250120_134505.jpg

A simple automatic plant watering system built using Arduino, a soil moisture sensor, and a water pump. The system continuously monitors soil moisture levels and automatically waters the plant whenever the soil becomes too dry.

Supplies

  1. Arduino Uno
  2. Soil Moisture Sensor
  3. Relay Module
  4. Water Pump
  5. Buzzer
  6. Battery / Power Supply
  7. Breadboard
  8. Jumper Wires

Hardware Setup

Connect the soil moisture sensor, relay module, buzzer, and water pump to the Arduino as shown in the connections below.

Connections:

Soil Moisture Sensor

  1. VCC → 5V
  2. GND → GND
  3. AO → A0

Relay Module

  1. VCC → 5V
  2. GND → GND
  3. IN → D8

Buzzer

  1. Positive (+) → D9
  2. Negative (-) → GND

Water Pump

  1. Connected through the relay module


Arduino Code

Upload the code using the Arduino IDE.

The Arduino continuously reads data from the soil moisture sensor and activates the water pump whenever the soil moisture falls below the desired level.

Note: The moisture threshold value is configurable and can be modified in the code based on the sensor readings, soil conditions, and watering requirements of different plants.

const int moistureThreshold = 400; // Adjust based on your sensor

Working

Insert the moisture sensor into the soil and power on the system.

When the soil becomes dry, the Arduino activates the relay, which turns on the water pump and supplies water to the plant. Once the watering cycle is complete, the pump turns off automatically.

This helps maintain soil moisture levels without the need for manual watering.