Arduino automatic plant watering: soil sensor, relay and pump
Open in the lab ▸Make my own copy
A capacitive soil sensor tells the Arduino how wet the soil is. Below 35 % it switches a relay module, and the relay runs a small 5 V pump in 3-second bursts with 10-second pauses, so the water soaks in before the next reading. Green LED: soil OK; red: dry. The pump has its own supply and a diode across it, so its kick never reaches the Arduino. Click the sensor and change the moisture. Open it and press Run: the sketch is inside the board (click the board, then Code). Every part, pin and resistor matches what you would build on a real breadboard; the guided build of the same name has the test sheet and hidden faults.
What is on the bench
11 parts, 18 wires, with a sketch (the program runs in the lab). Boards: Arduino Uno R3.
| Resistor | 2 |
|---|---|
| LED | 2 |
| Arduino Uno R3 | 1 |
| USB charger / port | 1 |
| Soil moisture sensor | 1 |
| Relay module | 1 |
| Bench power supply | 1 |
| DC motor | 1 |
| Signal diode | 1 |
Put it on your page
The project runs live inside the frame: readers can press buttons, turn knobs and read the meters.
<iframe src="https://zencircuitlab.com/embed/zclcplant" width="100%" height="560" style="border:1px solid #2f363a;border-radius:10px" loading="lazy" title="Arduino automatic plant watering: soil sensor, relay and pump on Zen Circuit Lab"></iframe>
Link
https://zencircuitlab.com/p/zclcplant
Published by its author under the lab's community terms: it may be opened, copied and changed by anyone. Simulation results are for learning; check a real build against the parts' datasheets.