Five builds that read the soil and the sky together — plant monitoring, rain detection, a combined garden dashboard, a decision system that tells you whether to water or wait, and a paged interface.
What is inside
Soil moisture as a percentage with a progress bar, traffic-light LEDs for wet, normal and dry, and a buzzer when it gets too dry.
Classifies conditions as Dry, Drizzle or Heavy Rain and alerts as soon as rain starts.
Both sensors on one dashboard with a loading screen, refreshing every second.
Turns the two readings into advice: Water the Plant, Wait for Rain, or Soil Condition Good.
Three pages you move through with a push button — soil, rain, and the combined view.
Circuit connections
| Connection | Arduino pin |
|---|---|
| Soil moisture AO | A0 |
| Raindrop sensor AO | A1 |
| Traffic light red / yellow / green | D4 / D5 / D6 |
| Buzzer | D7 |
| Push button | D2 to GND |
| OLED SDA / SCL | A4 / A5 |
Bench note: Calibrate both sensors before trusting the percentages — dunk the soil probe in water and in dry air, note the two raw values, and map between them.
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,490The full parts list is ₹1,490 for all 10 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
- Capacitive Soil Moisture Sensor v2.0CS-SOIL₹129Add to cart
- Rain Detection Sensor ModuleCS-RAIN₹79Add to cart
- 0.96 inch OLED Display 128×64 I2C (SSD1306)CD-OLED-096₹199Add to cart
- LED Assortment Pack 100 Pieces (5 Colours)CA-LED-PACK₹79Add to cart
- Resistor Assortment Pack 600 PiecesCA-RES-PACK₹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
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.