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

Farm IoT Failure Modes — What Goes Wrong and How to Recover Without Losing a Season

Every IoT setup fails eventually. Here is a field-tested catalogue of the most common failures on Kenyan farms — what causes them, how to diagnose remotely, ...

Share:

Farm IoT Failure Modes — What Goes Wrong and How to Recover Without Losing a Season

Anyone who runs farm IoT for more than six months has a failure story. The sensor that died on the morning the long rains broke. The Pi that refused to boot the week before harvest. The pump that ran dry while the protection circuit was being upgraded. The valve stuck closed during a heat wave.

This post is a working catalogue of the most common failures, what causes them, how to diagnose them from your phone before walking to the field, and how to recover quickly. Read it once; it is the post you will come back to.

The five categories of failure

Most farm IoT failures fall into five categories. Knowing which category a failure is in tells you which tools to bring when you walk out.

1. Power failures

Symptom: sensor stops reporting, or whole system goes offline.

Most common causes:

  • Battery dead (cold weather, end of dry season after weeks of cloud, counterfeit cell)
  • Solar panel dirty or shaded (a bird's nest, a creeper plant)
  • TP4056 charge circuit failed
  • Solar panel cable broken (rodents) Remote diagnosis:
  • Check last-reported battery voltage; if it was declining, this is power
  • Check last-reported solar input current; if zero during sunny days, panel/wiring is at fault

Recovery time: 30 minutes if it is a clean part; 1–2 hours if you need to test components.

2. Wireless link failures

Symptom: specific sensor stops reporting but battery and sensor are fine.

Most common causes:

  • LoRa antenna damaged or disconnected
  • A tree has grown into the line of sight
  • Farm brain LoRa receiver crashed (rare but happens)
  • New interference source (a neighbour's wireless gear, a microwave) Remote diagnosis:
  • Check RSSI (signal strength) trend for that sensor before it stopped — declining RSSI suggests range/obstruction
  • Check whether other sensors in the same direction also report problems

Recovery time: 1–4 hours depending on whether the problem is at the sensor, the path, or the brain.

3. Sensor probe failures

Symptom: sensor reports impossible values (negative moisture, temperature stuck at one number, NPK randomly jumping).

Most common causes:

  • Probe corroded (especially resistive moisture sensors, which corrode in months)
  • Cable cracked at the gland (water ingress)
  • Probe physically damaged (cow stepped on it, ploughing accident)
  • Connector loose Remote diagnosis: the values themselves are the diagnosis. Real sensor readings drift smoothly; broken sensors report sudden cliff changes or impossible values.

Recovery time: 30 minutes to swap a probe.

4. Brain failures

Symptom: all sensors and outputs go dark at once.

Most common causes:

  • Pi microSD card corrupted (the #1 cause; almost always preceded by a power event)
  • Pi overheated and throttled, eventually stuck
  • Pi PSU degraded and delivering unstable voltage
  • Disk full from log files
  • A botched update Remote diagnosis: if dashboard does not load and you cannot SSH, the brain is hard down.

Recovery time: 30 minutes if you have a spare SD card pre-imaged; half a day if you have to image one from scratch.

5. Software / configuration failures

Symptom: specific function does not work, but the system otherwise is up. Alerts not firing. Valve not opening. Dashboard showing stale data.

Most common causes:

  • A rule misconfigured (forgot to enable a schedule)
  • Cloud service the rule depends on changed its API
  • The thresholds drifted out of sensible range
  • A scheduled task got disabled Remote diagnosis: the dashboard's logs and rule states tell you most of what you need to know.

Recovery time: 5–30 minutes if you understand the configuration.

The diagnostic flowchart

When something is wrong, work down this list in order:

Step 1: Open the dashboard. Is the brain online?
         No  → Brain failure. Walk out, swap SD card or reboot.
         Yes ↓

Step 2: Which sensors are reporting / which are silent?
         All silent → Either brain receiver issue or mass wireless issue.
         Some silent → Specific failures. Continue.

Step 3: For each silent sensor, check last-known state.
         Battery declining over weeks  → Power chain (panel, cell, charge circuit).
         RSSI declining over weeks    → Wireless path (antenna, obstruction).
         Both fine, suddenly stopped  → Sensor or microcontroller died.

Step 4: Is the brain doing what it should?
         Rules running? Alerts firing? Logs healthy?
         No  → Software / configuration issue.

Step 5: Are external services responding?
         Weather API, SMS gateway, etc.
         No  → External service outage. Wait, or fail over.

This flow handles 90% of failures. The remaining 10% are the ones where two things are wrong at once — usually a power problem that caused a software problem.

Common Kenya-specific causes you would not expect

Beyond the universal causes, a few patterns repeat in Kenyan field deployments:

CauseEffectMitigation
Termites tunneling into a stake-mounted enclosureWires shortedTreat stakes with diesel/oil at install; quarterly inspections
Cattle rubbing against a sensor polePole snapped or sensor displacedMount higher; place inside fence line
Goats chewing exposed cableLoss of signalRun cables inside conduit; no exposed runs
Heavy dust accumulation on solar panels in dry seasonPower drops 30–50%Monthly wipe with damp cloth
Lightning during long rainsSensor electronics destroyedGas discharge tube on LoRa antenna; surge protection on mains
Vermin nesting in enclosuresSensors and wiring chewedStuff steel wool in unused cable gland holes
Borer beetles in wooden mountingMount failsUse metal stakes only
Bird droppings on the panelPower drops, then panel surface damage from acidMount panels at slight angle; clean monthly
Soil baked solid in dry seasonProbe loses good contactPush probe back in after first significant rain

These are practical, real, and frequent. They are also rarely covered in manufacturer documentation aimed at temperate climates.

Recovery toolkit — what to keep at the homestead

A small recovery kit at the homestead saves many trips. Keep:

  • 1 spare microSD card, pre-imaged with the current farm-brain configuration
  • 1 spare ESP32 board
  • 1 spare DS18B20 temperature probe
  • 1 spare LoRa module
  • 2 spare 18650 cells, charged
  • 1 spare TP4056 charge module
  • 1 spool of 0.5mm² 2-core cable, 20m
  • Multimeter
  • Soldering iron + flux
  • IP66 enclosure (1 spare)
  • Cable glands (5 spare)
  • Heat shrink tubing assortment Total kit cost: KES 4,000–6,000. Saved time: many weekends.

The 24-hour recovery target

For most farm IoT failures, the realistic recovery target is within 24 hours. Sometimes minutes (a reboot fixes it); sometimes a day (a sensor needs replacing). What matters is the discipline of:

  • Catching the failure within hours of it happening (via your own alerts)
  • Triaging remotely before walking out (saving wasted trips)
  • Having spares ready to swap
  • Documenting the incident in your dashboard for future pattern analysis A farm IoT setup that recovers from typical failures within 24 hours is genuinely useful. One that takes weeks for each failure rapidly becomes deprecated equipment in a corner.

Building maintenance into your routine

The non-negotiables:

TaskFrequency
Wipe solar panels with damp clothMonthly
Inspect each sensor enclosureQuarterly
Replace batteries showing degradationWhen capacity drops below 70%
Update Pi OS and softwareQuarterly (during a low-stakes period)
Test alert paths end-to-endQuarterly
Practice spare-SD recoveryOnce a year
Replace battery in animal collarsEvery 18–24 months

The last one is worth highlighting: schedule the collar-battery swap during another animal handling event (vaccination, dipping) so you do not need a separate handling event.

When to give up on a particular sensor

Not every failure is recoverable. Some sensors are not worth the cost of replacing the third time. Indicators that it is time to let one go:

  • The same sensor has failed three or more times in a year
  • The cause is something inherent to the location (e.g. a sensor in a tree that gets struck by lightning every season)
  • The data it produces is rarely actually used in a decision
  • A different sensor type would do the same job more reliably It is fine to retire a sensor and re-deploy the location with something different — or to retire it entirely.

What to do next

If you are deploying your first IoT setup, accept now that things will fail. The discipline you build around failure (catching it fast, diagnosing remotely, recovering in 24 hours) is what separates a useful IoT setup from an abandoned one.

Track every incident in your farm record at shira.farm — even small ones. Over months, you will see patterns: this enclosure is in a bad spot, this batch of sensors had a manufacturing defect, this season is the heaviest on rodent damage. The pattern lets you upgrade the right parts rather than replacing every component.

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