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)