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

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
04/Decisions
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.
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.
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.
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


06/Stack
ESP32 · BLEESP8266MQTTNestJSPostgreSQL 17TimescaleDBBullMQRedisReact 19ViteuPlot