Soil Monitoring on a Kenyan Farm — Moisture, pH, NPK, and What the Numbers Mean
The four soil readings worth measuring continuously, what they tell you about irrigation and fertiliser, and how to make sense of the numbers without a soil-...
Soil Monitoring on a Kenyan Farm — Moisture, pH, NPK, and What the Numbers Mean
Soil monitoring is the IoT use case with the fastest payback for most Kenyan farms. A KES 7,000 sensor that tells you when to irrigate and how much fertiliser is left in your soil can pay for itself in a single season through reduced inputs and better yields.
This post covers the four readings worth measuring continuously, what they actually tell you about your farm, and how to use them without becoming a soil scientist.
The four readings — moisture, temperature, pH, NPK
A modern soil sensor measures four things from a single probe:
1. Moisture (the most useful one)
Soil moisture tells you when to irrigate and when to stop. It is the single most actionable reading you will get.
Typical scale: 0% (bone dry) to 100% (saturated) Targets for common Kenyan crops:
| Crop | Optimal moisture range |
|---|---|
| Maize | 50–70% |
| Tomatoes | 60–80% |
| Kale (sukuma wiki) | 55–75% |
| French beans | 60–75% |
| Onions | 45–65% (avoid waterlogging) |
| Beans (dry) | 40–60% |
| Bananas | 65–85% |
When moisture drops below the lower bound, irrigate. When it climbs near the upper bound, stop. Simple as that.
2. Soil temperature
Soil temperature affects germination, root activity, and microbial life. In Kenyan conditions:
- Below 15°C: most crops stop germinating
- 18–28°C: ideal for most vegetables and maize
- Above 30°C: stress on roots, accelerated water loss You will see soil temperature swing more in the dry season than the wet. It is a useful diagnostic when crops are not thriving but moisture looks fine.
3. pH
pH is a measure of soil acidity. Kenyan soils — especially in the Rift Valley, parts of central, and tea-growing areas — tend toward acidic.
Common targets:
| pH range | What it means | Typical Kenyan context |
|---|---|---|
| Below 5.0 | Strongly acidic — aluminium toxicity | Highland tea areas |
| 5.0–6.0 | Moderately acidic — common, tolerable for most crops | Central Kenya, much of Rift Valley |
| 6.0–7.0 | Neutral — ideal for most crops | Well-managed mixed farms |
| 7.0–8.0 | Slightly alkaline | Lakeshore areas, parts of Coast |
| Above 8.0 | Strongly alkaline — nutrient lock-up | Saline patches |
If your sensor reports pH below 5.5 and your crops are underperforming, you likely need to apply agricultural lime — typically 1–2 tonnes per acre. Your sensor will show pH rising over weeks after liming. That feedback loop is impossible without continuous measurement.
4. NPK
NPK measures the three macronutrients: Nitrogen (N), Phosphorus (P), and Potassium (K). These are what fertiliser provides.
The honest reality of cheap NPK sensors: the inexpensive analogue NPK sensors on AliExpress for KES 500 are unreliable. They essentially measure soil conductivity and infer NPK, which gives only a rough ranking — "low, medium, high" — not absolute values.
For trustworthy NPK readings, use a Modbus RS485 NPK sensor. These cost KES 4,500–6,500 and provide actual numeric readings in mg/kg. They are professional-grade and used by commercial agricultural operations.
Typical target values for Kenyan vegetable production:
| Nutrient | Low | Optimal | High |
|---|---|---|---|
| Nitrogen (N) | <40 mg/kg | 60–120 mg/kg | >150 mg/kg |
| Phosphorus (P) | <15 mg/kg | 25–60 mg/kg | >80 mg/kg |
| Potassium (K) | <80 mg/kg | 150–300 mg/kg | >400 mg/kg |
These targets vary by crop. Tomatoes want higher K; leafy greens want higher N; legumes are tolerant of low N because they fix their own.
What the four readings let you decide
Continuous soil data turns guesswork into routine. Specific decisions you can make from sensor data:
| Decision | Reading that drives it |
|---|---|
| When to irrigate | Moisture below crop's lower bound |
| How long to irrigate | Stop when moisture reaches upper bound, not by clock |
| Whether to apply lime | pH below 5.5 |
| When to top-dress nitrogen | N below the optimal range mid-season |
| Whether the soil is warm enough to plant | Temperature above 18°C consistently |
| Whether you have a drainage problem | Moisture stays high 48h after rain stops |
| Whether your fertiliser is being used | Nutrient levels dropping as crop grows |
| When to harvest root crops | Soil moisture drying as the season ends |
Each of these decisions used to be made by feel, experience, or the agronomist's calendar. With sensor data they become objective and traceable.
The Kenyan soil context — what is normal here
Kenyan soils are diverse. Three patterns matter for IoT users:
Highland soils (central, parts of Rift Valley, Mount Kenya region)
- Often acidic (pH 4.8–5.8)
- Generally fertile but phosphorus-limited
- Hold moisture well, sometimes too well (waterlogging)
- Liming and phosphorus-heavy fertilisation are common needs
Semi-arid lowland soils (Eastern, parts of Coast, Ukambani)
- Higher pH (6.5–8.0)
- Lower organic matter, lower N
- Drain rapidly, prone to drought stress
- Irrigation timing is critical; moisture sensor is essential
Sandy coastal soils
- Slightly alkaline to neutral pH
- Low water-holding capacity
- High potassium leaching
- Need frequent small irrigations rather than infrequent large ones Knowing which type you have shapes both what readings to expect and what decisions to make. Your local agricultural extension officer can usually tell you which soil group you are in. The sensor then refines that picture day by day.
Reading the dashboard — what to look for
The most useful soil dashboard is not a single number — it is a graph over time. Patterns to watch for:
| Pattern | What it suggests | Action |
|---|---|---|
| Moisture drops steadily over 3–5 days then jumps after irrigation | Healthy irrigation cycle | Continue |
| Moisture drops in 1 day after rain or irrigation | Soil drains too fast — sandy or compacted | Add organic matter; mulch |
| Moisture stays high 48+ hours after rain | Drainage problem | Investigate; consider drainage works |
| pH declining over months | Acidification, common with continuous urea use | Apply lime |
| Sudden pH spike | Often a sensor calibration issue | Recalibrate |
| Nitrogen dropping fast mid-season | Crop is consuming it as expected | Plan top-dress |
| Nitrogen barely moving | Crop not taking up — root problem or other deficiency | Investigate |
The point is to look at trends over weeks, not single readings. A spike in any one reading at 3am is almost always a sensor glitch, not a real event.
When NOT to trust your sensor
A few honest situations where the sensor is wrong, not the soil:
- First two weeks after installation. Probe needs to settle into soil contact. Readings stabilise after about 14 days.
- Within 24 hours of fertiliser or chemical application. Surface residues distort readings.
- In completely dry soil during a long drought. Capacitive moisture sensors lose accuracy below 5% moisture.
- Right after heavy rain hitting the probe directly. Surface water gives misleadingly high readings for an hour or two.
- When the cable connection is loose. Random spikes and dropouts are usually a connector problem, not a soil one. Cross-check your sensor against feel and visual checks every few weeks. Trust builds over the first season.
Toolkit and budget for soil monitoring
What you need per zone:
- 1× ESP32 board — KES 800
- 1× capacitive soil moisture sensor — KES 600
- 1× Modbus RS485 NPK + pH + temperature sensor — KES 4,500–6,500
- 1× LoRa module + antenna — KES 1,000
- 1× IP66 enclosure + mounting — KES 1,000
- 1× battery + solar + charge controller — KES 3,000
- Total per zone: KES 11,000–13,000
For a 3-zone deployment on a 10-acre farm, expect KES 33,000–40,000 in hardware plus shipping.
Where to buy: AliExpress for the electronics; Modbus NPK sensors are a specific search — look for sellers with "5-in-1 soil sensor RS485" listings.
Steps:
- Build and bench-test the sensor node.
- Calibrate the moisture sensor (air = dry, cup of water = wet).
- Test communication with the brain over LoRa.
- Install in the field.
- Wait 14 days before trusting absolute values; trends are useful sooner.
Time: half a day to assemble per node; 30 minutes to install in the field.
What to do next
Pick one crop zone where you have a clear irrigation or fertiliser question. Install one sensor there. Watch it for one full season. The data you collect will tell you whether to expand the deployment and where.
If you are recording yield, inputs, and labour on the same plot — at shira.farm — you can correlate soil readings with actual farm outcomes at the end of the season. That is when the sensor stops being a gadget and starts being a profit decision.
See it in action
Tap this exact setup on our interactive visual guide — photorealistic farm scenes with clickable explainers showing what every device does, what it costs, and which Shira tier unlocks it.
Open the IoT Showcase