Automatic Plant Watering: Which Build Is Right for You?

Quick answer

First time: the relay build without a display. For a science fair: relay and LCD. Whichever you choose, check your own sensor's dry and wet numbers: our builds don't all treat a high number as dry.

Side by side

Transistor and pump

Who it's for
Students who want to learn the transistor
Level
intermediate
Cost
Low
Main parts
Uno, soil sensor, pump, transistor, diode, resistor
Wiring
Medium
Code
About 24 lines
It can
Water without a relay
It can't
Show the moisture on a screen

Relay, no display

Who it's for
First-time builders
Level
intermediate
Cost
Low
Main parts
Uno, soil sensor, relay, pump or 12 V valve
Wiring
Easy
Code
About 23 lines
It can
Switch a stronger pump or a valve
It can't
Show anything without a computer

Relay and LCD

Who it's for
School project makers
Level
intermediate
Cost
Medium
Main parts
Uno, soil sensor, relay, 16x2 LCD, pump, tubing
Wiring
Hard
Code
About 31 to 35 lines
It can
Show the moisture and when it waters
It can't
Tell you when you're away

Plant care (soil, light, DHT22)

Who it's for
Intermediate
Level
intermediate
Cost
Medium
Main parts
Uno, soil sensor, light sensor, DHT22, pump, LEDs
Wiring
Hard
Code
About 55 lines
It can
Watch light, air and soil together
It can't
Show on a screen: it uses the Serial Monitor

ESP32 and relay

Who it's for
ESP32 beginners
Level
intermediate
Cost
Medium
Main parts
ESP32, soil sensor, relay, pump, tubing
Wiring
Easy
Code
About 26 lines
It can
Water by itself on an ESP32
It can't
Use Wi-Fi: this code doesn't turn it on

ESP32 smart pot (Wi-Fi)

Who it's for
Advanced
Level
intermediate
Cost
High
Main parts
ESP32, soil sensor, DHT, pump (and a Raspberry Pi or computer for the local server)
Wiring
Hard
Code
About 103 lines plus the server
It can
Water the plant and send readings over Wi-Fi
It can't
Show the readings without a server

Written from the parts lists and code in these tutorials. Cost is a rough guide to the parts they list, compared with each other; line counts are of the main program.

More comparisons