Soil Moisture Driven Irrigation Controller for Small Farms
A solar-friendly irrigation controller for small farms, kitchen gardens and nurseries that waters from measured soil moisture and the rain forecast instead of a timer, and keeps working offline. An IoT final year project for agriculture where the result is measured water saved against a timer-run plot.
Intermediate
A small team, or one strong student willing to learn something new.2 semesters · 2 students
7 to ship
4 optional extrasSuggested stack
What you should ship
- Battery-powered sensor node measuring soil moisture at two depths plus soil temperature, with measured runtime
- Per-zone calibration of the moisture probe for the actual soil, from dry and saturated samples
- Irrigation decision logic running on the controller, using moisture thresholds and an optional rain forecast, with a safe fallback schedule when data is missing
- Valve control with firmware-enforced limits on maximum continuous and daily runtime that no remote command can override
- Dashboard showing moisture history, irrigation events, water used and forecast decisions, plus SMS or push alerts for faults
- Controlled comparison against a timer-irrigated plot for at least 4 weeks, reporting water used and a simple plant health measure
- Fault tests: sensor unplugged, network down, power cut mid-irrigation, with the observed behaviour documented
If you have time left
- Gravimetric soil sampling to calibrate probes more accurately
- Up to two independent zones with different crops and thresholds
- Solar panel and charge controller with measured autonomy through cloudy days
- Urdu or regional-language alerts for farm workers
The problem with irrigating on a timer
Most small-scale irrigation runs on a timer or on habit. It waters during rain, keeps going through a wet week, and under-waters in a heatwave. For a small farmer, a nursery or a school garden that pays for pumping water, this wastes both water and electricity or diesel, and over-watering can harm roots as badly as drought. Where power is intermittent, a pump also cannot always run when the timer says so.
Soil moisture sensors are cheap and the control logic is not complicated. The gap is mostly integration done carefully: calibration for the real soil, sensible decisions, and a system that fails safely.
What already exists and the gap
- Rachio is a smart sprinkler controller that adjusts residential lawn schedules using weather data, aimed at homeowners.
- OpenSprinkler is open-source irrigation controller firmware and hardware with a web interface, popular with hobbyists.
- Hunter Hydrawise offers weather-adjusted controllers for landscaping and commercial sites.
- Research and commercial soil probe products exist for large farms, usually with subscriptions and dealer installation.
Most consumer controllers are built for lawns, rely heavily on Wi-Fi and cloud weather, and treat soil moisture as an optional add-on. The gap is a small, low-cost controller that puts soil moisture at the centre, decides locally, survives network and power loss, and reports water saved in terms a small grower understands.
What you build
- Sensor node: capacitive probes at two depths, a soil temperature sensor, battery, sending readings to the controller.
- Controller: ESP32 driving the valve (or pump relay), running the decision logic, logging events locally.
- Server and dashboard: stores history, fetches the rain forecast and passes it to the controller, shows water used and decisions, and sends alerts.
- Users: the grower (sees status, overrides a zone), and optionally an advisor who views several sites.
The technically interesting part
Work without the network. If the decision lives on a server, a lost connection means either no water or a valve stuck open. Keep the logic on the controller, treat the forecast as an optional input with an expiry time, and fall back to a conservative timer mode when sensor data is missing or implausible. Write this as a small state machine and test every transition.
Hard safety limits. A bug that leaves a valve open overnight floods a field and drains a tank. Enforce maximum continuous and daily runtime in firmware, below any application logic, and make sure a reboot mid-irrigation closes the valve. Show your supervisor the fault tests.
Calibration. Capacitive probes give a raw number that depends on soil type. Calibrate each zone with dry and saturated samples, and discuss sensor placement and depth, because a probe in the wrong spot drives the whole system wrong.
How to evaluate it
- Water saved: two comparable plots for at least 4 weeks, one on your controller and one on a timer, with water measured by a flow meter or tank level.
- Plant health: a simple, repeatable measure such as plant height, leaf count or yield, so saving water is not bought with worse plants.
- Reliability: uptime of the node and controller, and the behaviour in each fault test.
- Battery: measured node runtime.
- Usability: ask 3 to 5 growers or gardeners to read the dashboard and answer "did it water yesterday, and why?"
Suggested plan
- Weeks 1 to 3: talk to growers, pick the site and crop, bench-test probes and valve.
- Weeks 4 to 7: sensor node, calibration, controller with safety limits.
- Weeks 8 to 11: decision logic, forecast input, offline fallback, fault tests.
- Weeks 12 to 16: backend, dashboard, alerts.
- Second semester: run the 4 to 8 week comparison, analyse results, write up.
Start the field comparison early. Growing seasons do not wait for your schedule.
Path to a product
The first customer is a plant nursery, a kitchen-garden business or a small orchard near your university, where water and pumping costs are visible every month. Sell the kit as a one-time hardware price with an optional subscription for forecast integration, history and alerts. Agricultural extension workers and agri-input dealers are a natural distribution channel. Scale by supporting more zones and crops with the same hardware, and by adding pump control for tubewell users.
Scope warning
Two zones at most. Do not build crop disease detection, a fertiliser recommender or a marketplace. Do not attempt evapotranspiration modelling as a core feature; a forecast input is enough. Do not work with mains-powered pumps without a qualified electrician; use a low-voltage valve for the prototype.
Learn what you need on Sefism
- Backend roadmap : the API and storage behind the dashboard and alerts.
- Data analytics roadmap : analysing the plot comparison honestly.
- OpenIntro Statistics : comparing two plots and stating how confident you are.
- PostgreSQL Documentation : if you store readings in Postgres or TimescaleDB.
Get help with this idea
This idea succeeds or fails on the field comparison, so plan it first. Tauseef can help you size the hardware, design the fault tests and set up an evaluation examiners will trust. If you are new here, create a free account first.
Ideas and guidance, not finished projects
These are project ideas and scoping guidance, published free for students to use as a starting point. I do not build, write, or sell final-year projects, and I do not complete coursework for anyone. Take an idea, make it yours, and build it.
Not sure this one fits you?
I help students pick an idea that matches their skills and their deadline, then scope it down until it is finishable. Guidance only, never done for you.
Stuck on something specific?
Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.
Follow along
New writing, resources and project ideas land here first.