From sensor data to a dashboard: iot-sensor-panel
I built an IoT dashboard that collects sensor data over MQTT and shows it in Grafana, and can run in a secure and an insecure mode.
iot-sensor-panel is a sensor dashboard I built from start to finish. Sensor devices (or a Python simulator when there is no real device) publish temperature, humidity and motion data over MQTT. A Python service validates the incoming readings and writes them to a database, and Grafana shows a live panel for each device. Threshold and offline-device alerts go to Telegram. A device that stays silent for a set time counts as offline. There is also a separate firmware project for the sensor board.
The security side
This is the part I care about most. The same stack runs in two modes: "insecure" with plain MQTT and anonymous access, and "secure" with TLS, passwords and per-device permissions. There is also a document that explains the difference using Wireshark.
Not trusting incoming data
The service checks every reading. Values that are physically impossible, or messages whose device name does not match the topic, are not stored, only counted. Alerts leave some slack so they do not flip on and off around the threshold.