Cold Chain Monitoring — Keeping Milk and Vaccines Cold Without Babysitting the Fridge
Why a KES 2,000 sensor on your milk cooler or vaccine fridge can prevent thousands of shillings in spoilage, and how to set up automatic alerts when the temp...
Cold Chain Monitoring — Keeping Milk and Vaccines Cold Without Babysitting the Fridge
A vaccine fridge that drifts above 8°C for six hours loses an entire shelf of vaccines worth KES 20,000–80,000. A milk cooler that fails overnight rejects an entire morning's milk worth KES 5,000–15,000. A power cut while you are away can destroy a week's worth of stored milk or weeks' worth of medication.
This post is about a cheap IoT solution that watches your cold storage 24/7 and tells you the moment something goes wrong — not the next morning when you open the door and find a problem.
Why cold chain matters specifically in Kenya
Three things make cold chain in Kenya especially fragile:
- KPLC brownouts and outages are common. Even a working fridge fails without power.
- High ambient temperatures mean recovery from a power cut takes longer than in cooler climates.
- Vaccine and medication supply is often hours away from a town with a stable replacement supply. A fridge that loses cooling for 6 hours in highland Kenya may stay below 10°C; the same fridge in coastal Kenya hits 20°C in the same time. Same equipment, different outcomes — your specific microclimate matters.
What needs monitoring
| Use case | Target temperature | Tolerance | Consequence of drift |
|---|---|---|---|
| Vaccines (most) | 2–8°C | Cannot exceed 8°C for >6 hours | Vaccines denatured, must discard |
| AI semen straws | -196°C (liquid nitrogen) | Cannot let nitrogen run out | Straws destroyed |
| Fresh milk cooler | 2–4°C | Cannot exceed 7°C for >2 hours | Rejected by processor |
| Frozen meat storage | -18°C | Cannot exceed -10°C | Quality loss, spoilage risk |
| Cheese maturing room | 8–14°C | Tight ±2°C for quality | Inconsistent product |
| Fridge for fertilised eggs | 12–18°C before incubation | Below 8°C kills viability | Eggs will not hatch |
Each of these is a context where a KES 2,000 sensor saves much more than it costs.
The basic monitor
A cold chain monitor is one of the simplest IoT builds:
DS18B20 waterproof temperature probe ────► ESP32 ────► Wi-Fi (or LoRa) ────► Cloud + WhatsApp alerts
- DS18B20 probe: stainless-steel-jacketed digital sensor, food-safe, accurate to ±0.5°C, costs KES 350. Drop it in the milk or place it on a vaccine shelf.
- ESP32: takes a reading every 30–60 seconds, transmits hourly summaries and immediate alerts.
- Power: USB from the same socket as the fridge if possible, with a small internal battery backup so the monitor keeps reporting through a power cut. Total parts cost: KES 1,800–2,500 per cold storage unit.
The alerts that matter
Above 8°C for more than 30 minutes (vaccine fridge): URGENT call + SMS + push Above 5°C for more than 30 minutes (milk cooler): URGENT call + SMS + push Below 1°C (any fridge): Warning — risk of freezing Power lost: SMS within 30 seconds Power restored: SMS confirming recovery Probe stops reporting (disconnected): SMS — physical check needed Daily summary at 6am: Min, max, average for last 24h
The urgent alerts use a phone call (via Africa's Talking voice API) — most farmers respond to a call far faster than to an SMS. The phone rings until you answer.
Battery backup for the monitor itself
The fridge has its own power. The monitor needs power too. A typical scheme:
- Monitor draws power from USB through a small charge circuit
- A small 18650 cell on the same circuit charges when grid is up
- When grid is lost, the cell powers the ESP32 for 12–24 hours
- The ESP32 cellular signal (or Wi-Fi if the router is on UPS) sends the alert For most rural setups, either the home Wi-Fi router or the home backbone needs its own UPS for the monitor to be able to send alerts during a power cut. A KES 8,000 router UPS that keeps the home Wi-Fi alive through a 4-hour cut is well worth it.
For mobile fridges (a vet's portable vaccine carrier), the monitor uses a 4G cellular dongle and is fully battery-powered.
What the data tells you over months
A cold chain monitor running for a year tells you:
- Whether your fridge can hold target temperature during the hottest days
- How fast temperature recovers after door openings (each door opening = 1–2°C rise)
- How long the fridge holds temperature during a power cut (typically 4–8 hours for a closed full fridge)
- Whether the compressor cycles are healthy (long-run-cycles often signal a failing seal or low refrigerant)
- Total time spent out of range each month — for regulatory or processor reporting That last one matters for commercial dairy and any vet/health-product business: many processors and regulators now require temperature logs for cold chain claims. The monitor produces them automatically.
Specific use case — vaccine fridge for a vet
A vet running a small practice with vaccines and antibiotics in stock loses an average of KES 30,000–80,000 a year to cold chain failures — usually unnoticed brownouts or door-left-open incidents. A KES 2,500 monitor with phone alerts pays for itself in the first prevented incident.
A bonus benefit: many vaccine suppliers now ask for a temperature log when returning expired vaccines for credit. The monitor's history report satisfies this automatically.
Specific use case — small-scale milk processor
A small chevon dairy aggregator (3,000–5,000L/day) with one or two cooling tanks faces a similar risk. A failed cooling fan during evening collection rejects a full day's milk. A monitor:
- Watches both tank temperatures
- Alerts if either drifts up
- Calls the processor immediately if temperature exceeds the rejection threshold
- Logs the full day's profile for the processor's quality records For an operation worth KES 200,000–500,000/day of milk throughput, the monitor's value is obvious.
Costs and steps
What you need per cold storage unit:
- 1× DS18B20 waterproof probe — KES 350
- 1× ESP32 — KES 800
- 1× IP66 enclosure — KES 700
- 1× 18650 + TP4056 + 5V boost for short-term battery backup — KES 1,000
- USB power adapter — KES 300
- Optional: small LoRa module if no Wi-Fi nearby — KES 800 Total: KES 3,150–3,950
Plus (one-time, household-wide):
A small UPS for your Wi-Fi router or cellular brain — KES 5,000–8,000 Steps:
Build and bench-test the monitor (1 evening).
Mount the enclosure outside the fridge, run the probe cable inside through a foam-gasketed access point.
Configure alert thresholds in your dashboard.
Test by leaving the fridge door open for 10 minutes and confirming the alert fires.
Test by removing power and confirming both the "power lost" alert AND the monitor itself continuing to run on battery. Time: Half a day per fridge.
What to do next
Of all the IoT use cases in this series, cold chain has the cleanest economic case: cheap sensor, expensive product being protected, alert beats failure. If you have any vaccines, semen straws, milk, or perishable medication in storage on your farm, this is the single most actionable project to do in a week.
For dairy farmers specifically, integrating the milk-cooler temperature log with shira.farm means your milk-collection record automatically includes the temperature at the time of collection — important for processor pricing tiers that pay premiums for cold-chain compliance.
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