Five builds for tanks and irrigation — level monitoring, manual pump control, automatic tank filling, watering that only runs when there is actually water to use, and a three-page dashboard.
What is inside
Tank level as a percentage with the tank status on the OLED.
A push button switches the pump through a relay, with runtime monitoring on screen.
Pump on below the low threshold, off at full, with smoothed percentage transitions.
Waters only when the soil is dry and the tank has water — checks both before it runs.
Tank page, soil page and combined page, with moving-average filtering for stable readings.
Circuit connections
| Connection | Arduino pin |
|---|---|
| Water level sensor AO | A0 |
| Soil moisture AO | A1 |
| Relay IN (pump) | D8 |
| Buzzer (+) | D7 |
| Push button | D2 to GND |
| OLED SDA / SCL | A4 / A5 |
Bench note: Run the pump from the 9V adapter through the relay, never from the Uno 5V pin. The motor inrush browns out the board and resets your sketch mid-cycle.
Libraries used
Wire.hAdafruit_GFX.hAdafruit_SSD1306.hGet the parts
Two ways to build this, and you can choose either. Take the complete kit in one box, or buy only the individual components you are missing. Both use the normal shop cart.
Option 1 — Complete kit
₹2,999eARgle Smart Agriculture Project Kit — everything needed, boxed, with the quick-start card and reference sketches.
Add kit to cartOption 2 — Individual components
₹1,669The full parts list is ₹1,669 for all 11 items. Add them all at once, or pick single items from the list below.
- Arduino Uno R3 Compatible Board with USB CableCB-UNO-R3₹499Add to cart
- Water Level Sensor ModuleCS-WATERLVL₹69Add to cart
- Capacitive Soil Moisture Sensor v2.0CS-SOIL₹129Add to cart
- 0.96 inch OLED Display 128×64 I2C (SSD1306)CD-OLED-096₹199Add to cart
- 2-Channel 5V Relay Module with OptocouplerCM-RELAY-2₹119Add to cart
- 5V Submersible Water Pump with TubingCMO-PUMP-5V₹149Add to cart
- Active and Passive Buzzer PairCA-BUZZ₹49Add to cart
- Tactile Push Button Pack with Caps (25 Pieces)CA-BTN-PACK₹69Add to cart
- 830 Point Solderless BreadboardCA-BB-830₹89Add to cart
- Jumper Wire Set 120 Pieces (M-M, M-F, F-F)CA-JUMPER-120₹149Add to cart
- 9V 1A DC Power Adapter with Barrel JackCP-ADAPT-9V₹149Add to cart
Already own the board or the display? Skip them — the sketches do not care where the parts came from.
From the bench
Source code
Every sketch on this page is open source. Clone it, change it, break it, tell us what you learned.
Want to be taught this, not just handed the code?
We run this as a mentor-led session for schools, colleges and individual learners, online or at our centre. Tell us what you want to build.