This project includes a Node-RED flow for real-time IoT monitoring, database logging, and dashboard visualization.
- MQTT Input: Subscribes to sensor data from
channels/3201453/publish. - SQLite Database: Stores sensor readings (
Occupancy,Temperature,Humidity,Pressure,Dust,Light,Distance,Fan_State) inALL_SENS_DATA. - Thingspeak Integration: Sends sensor data to Thingspeak via HTTP GET requests for cloud visualization.
- Dashboard Widgets:
- Table: Displays historical sensor logs with timestamps.
- Charts: Line charts for each sensor vs timestamp.
- Gauges: Real-time gauges for temperature, humidity, pressure, dust, light, and distance.
- Custom UI Template: Occupancy status (👤 OCCUPIED / 🚫 EMPTY) with animations.
- Copy the
.jsonfile from theNodeRED/folder in this repo. - Open Node-RED editor → Menu → Import.
- Paste the JSON code or upload the file.
- Deploy the flow to start monitoring.
The Node-RED dashboard provides:
- Real-time gauges for environmental conditions
- Line charts for historical trends
- Occupancy status indicator
- Fan state monitoring
- Sensor → MQTT → Node-RED
- Node-RED → SQLite Database (local storage)
- Node-RED → Thingspeak (cloud visualization)
- Node-RED → Dashboard (real-time charts, gauges, tables)