Monday on the farm — Jumatatu ya kupanga: Plan your week and check your numbers. Learn more ↗
Back to blog
· 6 min read

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-...

Share:

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:

CropOptimal moisture range
Maize50–70%
Tomatoes60–80%
Kale (sukuma wiki)55–75%
French beans60–75%
Onions45–65% (avoid waterlogging)
Beans (dry)40–60%
Bananas65–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 rangeWhat it meansTypical Kenyan context
Below 5.0Strongly acidic — aluminium toxicityHighland tea areas
5.0–6.0Moderately acidic — common, tolerable for most cropsCentral Kenya, much of Rift Valley
6.0–7.0Neutral — ideal for most cropsWell-managed mixed farms
7.0–8.0Slightly alkalineLakeshore areas, parts of Coast
Above 8.0Strongly alkaline — nutrient lock-upSaline 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:

NutrientLowOptimalHigh
Nitrogen (N)<40 mg/kg60–120 mg/kg>150 mg/kg
Phosphorus (P)<15 mg/kg25–60 mg/kg>80 mg/kg
Potassium (K)<80 mg/kg150–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:

DecisionReading that drives it
When to irrigateMoisture below crop's lower bound
How long to irrigateStop when moisture reaches upper bound, not by clock
Whether to apply limepH below 5.5
When to top-dress nitrogenN below the optimal range mid-season
Whether the soil is warm enough to plantTemperature above 18°C consistently
Whether you have a drainage problemMoisture stays high 48h after rain stops
Whether your fertiliser is being usedNutrient levels dropping as crop grows
When to harvest root cropsSoil 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:

PatternWhat it suggestsAction
Moisture drops steadily over 3–5 days then jumps after irrigationHealthy irrigation cycleContinue
Moisture drops in 1 day after rain or irrigationSoil drains too fast — sandy or compactedAdd organic matter; mulch
Moisture stays high 48+ hours after rainDrainage problemInvestigate; consider drainage works
pH declining over monthsAcidification, common with continuous urea useApply lime
Sudden pH spikeOften a sensor calibration issueRecalibrate
Nitrogen dropping fast mid-seasonCrop is consuming it as expectedPlan top-dress
Nitrogen barely movingCrop not taking up — root problem or other deficiencyInvestigate

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:

  1. Build and bench-test the sensor node.
  2. Calibrate the moisture sensor (air = dry, cup of water = wet).
  3. Test communication with the brain over LoRa.
  4. Install in the field.
  5. 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