๐ŸŽ™ Free live masterclass ยท Sun, 29 Nov, 7:00 pm IST ยท Java Full Stack roadmap Register free โ†’
Skills101

Smart plant irrigation system

Water plants automatically when the soil gets dry, with thresholds you can tune and a log of watering.

Beginnerโฑ 8โ€“12 hours๐Ÿชœ 7 stepsArduino UnoSoil moisture sensorRelay + pump

What you'll learn

  • โ—†Reading analog sensors
  • โ—†Controlling a pump safely with a relay
  • โ—†Calibration and hysteresis

What you'll build

  • โœ“Reads soil moisture every few seconds
  • โœ“Pump turns on below a threshold and off above another
  • โœ“LCD shows moisture and status
  • โœ“Manual override button

Step-by-step guide

  1. 1

    Parts

    Arduino Uno, capacitive soil moisture sensor (lasts longer than resistive), 5V relay module, small DC pump with its own supply, 16ร—2 I2C LCD.

  2. 2

    Wire safely

    Power the pump from a separate supply through the relay; share ground with the Arduino; never run mains voltage without supervision.

  3. 3

    Calibrate

    Read analogRead values in dry air and in water; map to 0โ€“100%.

  4. 4

    Control logic

    Turn pump ON below 35% and OFF above 55% (two thresholds = hysteresis, so it does not flicker).

  5. 5

    Safety timer

    Never run the pump more than 20 seconds at once; wait before checking again.

  6. 6

    Display

    Show moisture % and pump state on the LCD with the LiquidCrystal_I2C library.

  7. 7

    Test and document

    Log readings over a day, take photos and a short video for your portfolio.

๐Ÿš€ Make it stand out

  • +ESP32 + Wi-Fi to see readings on your phone
  • +Rain sensor to skip watering
  • +Solar power