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

Where to Put Your Soil Sensor — Deployment, Weatherproofing, and Anti-Theft for Kenyan Conditions

How to physically deploy a soil sensor node so it survives Kenyan weather, termites, tilling, sun, and the occasional opportunist. Placement strategy, mounti...

Share:

Where to Put Your Soil Sensor — Deployment, Weatherproofing, and Anti-Theft for Kenyan Conditions

A perfect soil sensor in the wrong place is worthless. A cheap one in the right place is gold. This post is about the boring but decisive part of farm IoT — actually putting a sensor in the ground so it survives and gives you useful data.

We will cover where to place sensors on your farm, how to mount them for Kenyan weather, how to handle ploughing season, and the practical tricks that prevent a sensor from being stolen, eaten by termites, or destroyed by ultraviolet sun.

Placement — how many sensors and where

A common mistake is putting one sensor "in the middle of the farm" and assuming it represents everything. It does not. Soil varies in metres, not kilometres.

The honest rules of placement:

Farm sizeNumber of sensorsWhere
Under 1 acre, uniform1Centre of the planted area
1–5 acres, mixed crops2–3One per crop zone
5–15 acres, varied terrain3–5One per soil type / slope position
Above 15 acres5+One per management zone

Things that justify a separate sensor:

  • Different crop in that area

  • Different soil type (sandy in one corner, clay in another)

  • Slope position changes (top of slope drains faster than the bottom)

  • Different irrigation zone

  • Different planting date Things that do NOT justify a separate sensor:

  • "I want more readings just in case" — extra sensors without management decisions tied to them is wasted money

  • "It looks too far away" — one sensor reliably covers a uniform 2–5 acres A good first deployment is three sensors on a 5–10 acre farm: one in your main crop, one in a problem area you suspect drains badly, and one in a contrast area for calibration.

What a sensor node actually looks like in the ground

A field node has two parts:

  • The probe — a metal rod that you push 10–15 cm into the soil
  • The electronics box — a sealed plastic enclosure on a stake, sitting above ground The probe touches the soil. The box does not. The two are connected by a short cable.

The electronics box contains:

  • An ESP32 microcontroller
  • An 18650 battery and charge board
  • A LoRa radio module with antenna
  • A small solar panel (mounted on top of the box, facing up) The box typically sits on a stake or post 30–50 cm off the ground — high enough that crops do not shade the solar panel, low enough that it does not become a landmark for thieves.

The first installation — step by step

Before you go to the field

  • Assemble and test the sensor node on a workbench. Verify that the brain receives readings.
  • Charge the battery fully indoors.
  • Pack a basic kit: jiko/stone for hammering the stake, a multimeter, a roll of weatherproof tape, a metre of spare cable.

In the field

  • Pick a spot that is representative of the zone, away from edges, away from compacted paths.
  • Drive the stake in firmly so the box sits stable in wind.
  • Push the probe into undisturbed soil, perpendicular to the ground, with full contact along its length.
  • Position the solar panel facing up. In Kenya at the equator, panels should be roughly horizontal, with a very slight north tilt of 5–10° for water runoff.
  • Take a reading immediately and confirm it reaches the farm brain. Walk back to the homestead — the dashboard should show the new sensor reporting.
  • Photograph the installation and record GPS coordinates. Add a label inside the box with the install date. The whole installation takes 30–45 minutes per node once you have done one.

Weatherproofing — surviving the Kenyan seasons

Kenya has four big enemies of outdoor electronics:

1. Rain — both seasons

The long rains (March–May) and short rains (October–December) will soak any unsealed enclosure. The box must be rated IP66 or better. IP65 is the bare minimum.

  • Use a proper ABS or polycarbonate enclosure with a gasketed lid
  • Run all cables through cable glands (PG7 size for 4–8mm cables) — never just a hole with silicone
  • Mount with the cable entries pointing down so water cannot drip in
  • Test it. Spray a hose at it for 60 seconds before deployment. Open and check inside.

2. Sun and UV

Cheap ABS enclosures last 6–18 months in equatorial sun before becoming brittle. Two cheap mitigations:

  • Buy enclosures specifically rated "UV-stabilised" (most professional ones are)
  • Paint the enclosure white if it is dark — reflects heat, reduces UV degradation White enclosures also stay cooler inside, which extends battery life.

3. Termites

Termites in Kenyan soils will eat through ABS plastic at the soil contact line. They do not eat the box, but they tunnel against it looking for moisture, and over a season they can compromise the seal.

Mitigations:

  • Mount on a metal stake, not a wooden one
  • Treat the stake base with diesel or used motor oil during installation — repels termites for a year
  • Inspect installations quarterly

4. Dust

Dust is mostly a problem for solar panels. A dusty panel produces 30–50% less power. A dust-covered sensor means a tired battery means missed readings.

Mitigation: wipe the solar panel monthly with a damp cloth. This is the only routine maintenance task.

Surviving ploughing season

This is the question every farmer asks: "What happens when I plough?"

The answer: pull the probe out before ploughing, set the box and stake aside, plough, then push the probe back in.

It takes 30 seconds per node to do this. The node continues working — it just reads ambient air for the few hours that it is out of soil. Set it down somewhere it will not be ploughed over.

A few tricks that help:

  • Mark each installation with a small painted rock or flag so you do not plough over the box itself
  • Use a quick-disconnect connector between probe and box (a standard 3.5mm jack works) so you can pull just the probe, leaving the box on the stake
  • Reinstall in the same spot so your historical data remains comparable Some farmers ask whether they can leave the probe in and just plough around it. You can — but if you hit it with a disc plough, the probe is destroyed and you have just thrown away KES 2,000. 30 seconds of pulling it out is the right answer.

Anti-theft — making your sensor unattractive to steal

Sensor theft in Kenya is rare but real. The risk is highest in roadside fields, near tracks, or where unfamiliar people pass through regularly. A few practical measures:

Make it look uninteresting

  • Paint the enclosure dull grey or matt black, not bright colours
  • Avoid logos, bright stickers, or "TECH" branding
  • Mount low and behind some vegetation — most thieves are opportunists scanning for shiny things from a distance

Mark it as worthless to sell

  • Engrave or paint your farm name and phone number on the enclosure — "Property of [farm name], call [number]"
  • A traceable item is harder to fence locally

Make it physically hard to remove

  • Drive the stake at least 40 cm into the ground
  • Use stainless steel hose clamps to fix the box to the stake, requiring tools to remove
  • Bolt the solar panel to the box with security bits, not standard Phillips screws

Visible from your homestead

  • The first sensor especially should be placed where you can see it from your house or a regular path
  • Once you have one or two working without incident, you can deploy further out Realistically, theft is more likely for the solar panel than for the whole node — panels are easy to fence at local markets. Mount panels with security screws, and use the smallest panel that does the job (5W panels are smaller and less attractive than 20W ones).

Calibrating sensors against actual soil

The cheap soil moisture sensors that come from AliExpress report a number from 0 to 100, but "100" does not mean fully saturated and "0" does not mean bone dry — every sensor is slightly different. You need to calibrate.

One-hour calibration procedure:

  • Take the sensor out of the field, clean the probe
  • Hold the probe in dry air — record the reading (this is your "0% moisture" baseline)
  • Submerge the probe in a cup of water — record the reading (your "100%" baseline)
  • The range between these two is your sensor's actual scale
  • Note these two numbers per sensor in a calibration table Apply the calibration in software so all sensors report on the same scale.

A NPK sensor (the more expensive Modbus variety) typically arrives pre-calibrated but should be checked against a known soil sample once or twice a year.

Toolkit and budget per sensor node

What you need:

  • 1× ESP32 board
  • 1× soil moisture sensor (capacitive, not resistive — KES 600)
  • 1× NPK/pH sensor (Modbus RS485 — KES 4,500–6,500, optional)
  • 1× LoRa Ra-02 module — KES 800
  • 1× IP66 ABS enclosure with gasket — KES 700
  • 1× 5W solar panel — KES 1,200
  • 1× TP4056 charge controller — KES 250
  • 2× 18650 cells (Samsung or LG) + holder — KES 1,200
  • 1× metal stake (60 cm length) — KES 200
  • Cable, glands, screws — KES 300

Where to buy: AliExpress for electronics, local hardware shop for stake and tape.

Steps:

  1. Bench-build and bench-test the node before going outdoors (1 evening per node).
  2. Calibrate in air vs. water (1 hour).
  3. Install in the field (30 minutes).
  4. Verify the brain is receiving readings before walking away.

Time: 1 evening to build, 30 minutes to install per node. Plan a weekend for 3 nodes.

Total cost per node: KES 6,000–10,500 depending on sensor selection.

What to do next

The first soil sensor node is the hardest. The second is half the time. By the third, you have the routine and the skill. Plan for two weekends to deploy a typical three-node setup with calibration.

Once you are recording data, your dashboard tells you in days what you used to learn over a whole season — when your field is dry, when it is over-watered, how your soil responds to rain. That history becomes the basis for every fertilisation and irrigation decision you make the year after.

Meanwhile, capture the farm-management side of the picture at shira.farm — yield, costs, sales — so the soil data has business numbers to sit alongside.

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