All posts
Projects7/3/2026

Cold-Chain Monitoring: Vaccine Fridge Alerts with Raspberry Pi & n8n

Protect temperature-sensitive stock. A Raspberry Pi logs fridge temperature to IoTFlow and an n8n flow escalates to staff on Telegram and email the moment it drifts out of range.

Cold-Chain Monitoring: Vaccine Fridge Alerts with Raspberry Pi & n8n

Cold-Chain Monitoring

Vaccines and lab samples must stay within a tight temperature band. Here we use a Raspberry Pi and a digital temperature probe to monitor a fridge, and an n8n flow to escalate instantly if it warms up.

Device code (Raspberry Pi, Python)

Zero-install with the one-file client:

from iotflow import IoTFlow
iot = IoTFlow("https://iot.tertiaryinfotech.com", "dev_YOUR_TOKEN", "cold-1")
while True:
    iot.send(temperature=read_probe())
    time.sleep(30)

Add a threshold alert in IoTFlow (temperature > 8°C) — that alert becomes the event that fires the flow below.

The n8n workflow

n8n workflow

Here is the low-code automation that ties it together. In IoTFlow, every device event (telemetry, alert, command) can be forwarded to an n8n Webhook, and n8n calls back into the platform to control the device.

  1. The Webhook receives the ALERT (or TELEMETRY, metric = temperature).
  2. An IF node checks temperature > 8°C.
  3. A Telegram + Email node escalates to on-call staff with the fridge name.

Wire it up in 3 steps

  1. In n8n, add a Webhook node, activate it and copy the Production URL.
  2. In IoTFlow → Automations → New automation, pick the event and paste the URL.
  3. Click Test, then let real device data trigger it automatically.
Tip: bind a Switch or Slider widget to the same virtual pin so you can also control the device by hand from the web or mobile app.

Happy building! 🚀

Reviews

Leave a review