Skip to content

An IoT lab exercise project that integrates environmental sensors, occupancy detection, distance. Real-time data is processed through Node-RED, stored in SQLite, sent to Thingspeak, and visualized on a dashboard with charts, gauges, and tables for safe inspection and monitoring.

Notifications You must be signed in to change notification settings

mdhakim2003/IotLabExercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–₯️ Node-RED Flow Integration

This project includes a Node-RED flow for real-time IoT monitoring, database logging, and dashboard visualization.

πŸ”Ή Flow Overview

  • MQTT Input: Subscribes to sensor data from channels/3201453/publish.
  • SQLite Database: Stores sensor readings (Occupancy, Temperature, Humidity, Pressure, Dust, Light, Distance, Fan_State) in ALL_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.

πŸ”Ή Importing the Flow

  1. Copy the .json file from the NodeRED/ folder in this repo.
  2. Open Node-RED editor β†’ Menu β†’ Import.
  3. Paste the JSON code or upload the file.
  4. Deploy the flow to start monitoring.

πŸ”Ή Dashboard Preview

The Node-RED dashboard provides:

  • Real-time gauges for environmental conditions
  • Line charts for historical trends
  • Occupancy status indicator
  • Fan state monitoring

πŸ“Š Example Data Flow

  1. Sensor β†’ MQTT β†’ Node-RED
  2. Node-RED β†’ SQLite Database (local storage)
  3. Node-RED β†’ Thingspeak (cloud visualization)
  4. Node-RED β†’ Dashboard (real-time charts, gauges, tables)

About

An IoT lab exercise project that integrates environmental sensors, occupancy detection, distance. Real-time data is processed through Node-RED, stored in SQLite, sent to Thingspeak, and visualized on a dashboard with charts, gauges, and tables for safe inspection and monitoring.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published