RunningSince 2026

Sensors · Web

Hardware, firmware, backend and dashboard

Healthy Temp

Cold-chain monitoring for medicine storage: sensors in every fridge and cold room, a live board per warehouse, inspection reports, and an alert the moment a sensor goes silent.

  • Automated tests, server and web

  • Commits on the cloud version

  • Of readings a node may send late

  • Watcher cycle

TempZone overview with demo data: zones per warehouse, live temperatures and one open alert

01/Problem

Medicines that must stay between 2 and 8 °C are lost when a fridge fails, and a failure at night can go unnoticed until morning. Inspections also ask for the temperature history of every storage zone, not just today's reading.

The goal: every storage zone measured all the time, a person told when something is wrong, and a record that holds up in an inspection.

02/Constraints

  • 01Cheap sensors and Wi-Fi that drops: readings must survive the network going away.
  • 02Several companies on one service, and one must never see another's data.
  • 03The record is append-only: nobody edits or deletes history.
  • 04Our own downtime must not turn into a flood of false alarms.

03/Architecture

Floor

  • ESP8266 nodes · DHT22 / AHT21
  • ESP32 BLE gateway
  • MQTT

People

  • Dashboard · React 19
  • uPlot charts
  • inspection report

Service

  • NestJS
  • device API
  • watcher
  • BullMQ · Telegram · email

Data

  • PostgreSQL 17
  • TimescaleDB hypertable
  • row-level security
  • Redis
A node keeps resending a reading until it is acknowledged. A watcher checks every zone every 15 seconds and queues alerts; delivery runs on BullMQ, so one failing channel never blocks another.

04/Decisions

  1. Isolation in the database, not only in code

    Every table, readings included, has row-level security per organisation, with tenant-safe foreign keys. A forgotten filter in a query returns nothing instead of another company's fridges.

  2. Late readings are normal, not an error

    The device API takes readings in batches, up to seven days late, and hands the device the server's time so its clock stays right. Each reading lands at the moment it was measured, and late deliveries are counted in the report instead of hidden.

  3. Don't cry wolf after our own outage

    After the service itself was down, the watcher waits a full offline window before calling any device silent. A dead watcher or a stuck alert queue pages us; one customer's blocked Telegram bot does not.

  4. Numbers an inspector asks for

    Each zone reports its extremes with their times, mean, MKT, minutes outside the limits and data completeness, judged against the limits in force at the time. The page prints as an A4 report.

    Trade-off: Version 1 alerts on silent devices only; out-of-range readings show on the board and in the report but don't send alerts yet.

05/Screens

A zone over 24 hours: a door left open, caught, with inspection numbers below (demo data)
A zone over 24 hours: a door left open, caught, with inspection numbers below (demo data)
Devices: where each sensor sits, its signal and last reading (simulated nodes)
Devices: where each sensor sits, its signal and last reading (simulated nodes)

06/Stack

ESP32 · BLEESP8266MQTTNestJSPostgreSQL 17TimescaleDBBullMQRedisReact 19ViteuPlot

Next systemSolovit Store
Mohammed Yousef Ali | Systems Architect for real businesses