Rule-Based vs ML Greenhouse Irrigation Kit with ESP32 + Solenoid Valve
Open this project in the Soldr app → What is Soldr.ai → wiring, code and test steps for exactly these parts
Rule vs ML Greenhouse Watering Kit: ESP32, Soil, Valve — an intermediate-level kit.
Rule vs ML Greenhouse Watering Kit: ESP32, Soil, Valve
Every part needed, pre-tested for compatibility, with an AI build companion trained on this exact project. Shipped from Bengaluru in 3-7 days.
Kit at a glance
What you build: A rule versus ML watering experiment: three soil sensors and a DHT22 tell an ESP32 when to open a solenoid valve, first with simple threshold rules and then with a small model trained on your logged data, so you can compare how much water each uses.
What's in the box
- ESP32 Dev Board
- Soil Moisture Sensor × 3
- DHT22
- 5V Relay Module
- Solenoid Valve
- 12V PSU
- USB Cable
- M-M Wires × 20
Power: 12V supply for the valve included; the ESP32 runs on USB.
Skill level: Intermediate (6-8 hours).
Frequently asked questions
Which works better?
That's the experiment: compare water used and soil moisture held.
Do valves need pressure?
Many solenoid valves need some water pressure to open fully.
Create a smart greenhouse irrigation controller that goes far beyond a simple timer. This kit places you at the intersection of IoT and machine learning: you’ll wire up three soil moisture sensors and a DHT22 to an ESP32, then program both a traditional rule-based watering logic and a machine learning model that predicts the optimal irrigation moment. The hardware actuates a real solenoid valve, letting you physically see which approach saves more water and keeps soil conditions ideal.
What You'll Build
A sensor network that monitors soil moisture at multiple depths and tracks ambient temperature/humidity with the DHT22. The ESP32 processes this data and toggles a 5V relay to open or close the solenoid valve, controlling a water line. You’ll implement a threshold-based rule engine (e.g., water when moisture drops below 30%) and contrast it against a tiny ML model trained on simulated historical patterns. The kit turns abstract concepts into a hands-on comparison you can demo and measure.
What You'll Learn
- Calibrate capacitive soil moisture sensors and interpret analog readings on the ESP32
- Design multi-threshold rule-based irrigation with adjustable moisture and temperature triggers
- Collect offline sensor data and train a basic decision-tree model for irrigation prediction
- Deploy the model on ESP32 using TinyML and measure water savings against the rule-based approach
Kit Contents
| Component | Quantity |
|---|---|
| ESP32 Dev Board | 1 |
| Soil Moisture Sensor | 3 |
| DHT22 | 1 |
| 5V Relay Module | 1 |
| Solenoid Valve | 1 |
| 12V PSU | 1 |
| USB Cable | 1 |
| M-M Wires | 20 |
Who This Kit Is For
Built for B.Tech (ECE, EEE, CS, Agriculture Engineering) and polytechnic students diving into precision agriculture. Perfect for Smart India Hackathon teams prototyping agri-tech solutions, CBSE/CISCE students pursuing AI/ML electives, and ATL Tinkering Labs that want a tangible IoT-meets-ML experience. It demands intermediate Arduino/ESP32 familiarity but walks you through the ML part step by step.
Built and Backed by Compoden
Every Compoden kit ships with an AI build companion trained on this exact project — accessible via a QR code on the box, with WhatsApp and email backup. We've spent 10 years building projects for makers, schools, and institutions across India. If a part fails because of a manufacturing defect, replace it free within 7 days.
What if I get stuck during the build?
Scan the QR code to connect with your AI companion, which understands every wire connection and code snippet. For human help, our support team is on WhatsApp during working hours.
Do I need prior machine learning experience?
No. The kit includes a pre-trained model and a guided workflow to train a simple decision tree with sample data. You can run the comparison without writing ML algorithms from scratch.
How do I simulate historical soil data for training?
We provide sample datasets and a method to log your sensor readings to Google Sheets or a local CSV via the ESP32’s WiFi. You can also use a mobile hotspot to push data.
Can I use this kit for a college project or hackathon demo?
Absolutely. The side-by-side comparison of rule-based and ML irrigation makes a strong evidence-based submission, and the solenoid valve setup delivers a live water-control demo that evaluators remember.
Greenhouse — Soil moisture and temperature on ESP32 decide when to water — compares rule-based vs ML-based scheduling.
What's in this kit
- ESP32 Dev Board
- Soil Moisture Sensor x3
- DHT22
- 5V Relay Module
- Solenoid Valve
- 12V PSU
- USB Cable
- M-M Wires x20
Shipping Information
- Prepaid Orders: ₹45 for orders up to ₹1,999, FREE shipping above ₹1,999
- COD Orders: ₹45 shipping for orders up to ₹1,999, FREE shipping above ₹1,999. COD available.
- Delivery Timeline: Dispatch in 3-7 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items