Industrial Safety Monitoring System With ESP8266, Gas, Flame, DHT11, PIR & KiwisIoT
by Keerthana Dass in Circuits > Electronics
9 Views, 0 Favorites, 0 Comments
Industrial Safety Monitoring System With ESP8266, Gas, Flame, DHT11, PIR & KiwisIoT
Industrial environments can have multiple safety risks such as gas leakage, fire, high temperature, and unexpected movement. In this project, we will build an Industrial Safety Monitoring System using an ESP8266 NodeMCU, gas sensor, flame sensor, DHT11, PIR motion sensor, and KiwisIoT.
The system continuously monitors gas level, flame detection, temperature, and motion. Based on the sensor readings, it determines whether the overall safety condition is NORMAL or ALERT.
All the important information is sent to a KiwisIoT dashboard, allowing us to monitor the safety conditions remotely.
The dashboard displays:
- 🔥 Gas Level
- 🔥 Flame Status – True / False
- 🌡️ Temperature
- 🚶 Motion Status – Motion / No Motion
- ⚠️ Safety Status – ALERT / NORMAL
Supplies
Hardware
- ESP8266 NodeMCU
- Gas sensor module
- Flame sensor module
- DHT11 temperature and humidity sensor
- PIR motion sensor
- Jumper wires
- USB cable
Software
- Arduino IDE
- ESP8266 Board Package
- KiwisIoT Library
- DHT Sensor Library
- Adafruit Unified Sensor Library
- KiwisIoT account
How the Project Works
The ESP8266 collects data from four different sensors.
The gas sensor provides an analog gas level through A0.
The flame sensor detects whether a flame is present.
The DHT11 measures the surrounding temperature.
The PIR sensor detects movement.
The ESP8266 processes these readings and determines the overall safety condition.
The gas threshold used in this project is:
If a flame is detected:
The overall safety status is calculated using both conditions:
If neither condition is detected:
The sensor values are then sent to KiwisIoT.
Circuit Connections
Gas Sensor
Flame Sensor
DHT11 Sensor
PIR Motion Sensor
KiwisIoT Configuration
Create a new panel in KiwisIoT and copy the Topic ID.
The project uses five channels:
For the dashboard, you can add five display widgets:
- Gas Level
- Flame Status
- Temperature
- Motion Status
- Safety Status
The widgets can display values such as:
Gas Level:
Flame Status:
Temperature:
Motion Status:
Safety Status:
Install the Required Libraries
Open Arduino IDE and install:
- DHT sensor library
- Adafruit Unified Sensor
- KiwisIoT
Make sure the ESP8266 board package is also installed.
Select:
Arduino Code
Paste the following code into Arduino IDE:
Understanding the Safety Logic
The project uses the following gas threshold:
Gas Level
If the gas value is greater than or equal to 500:
If the gas value is below 500:
Flame Detection
The flame sensor uses a LOW signal to indicate flame detection.
Overall Safety Status
The project combines gas and flame conditions:
Otherwise:
PIR Motion Detection
The PIR sensor is connected to D7.
The ESP8266 checks the PIR output:
The motion status is sent to KiwisIoT through Channel 3.
Example:
or
DHT11 Temperature
The DHT11 is connected to D2.
The ESP8266 reads the temperature using:
The temperature is displayed in the Serial Monitor and sent to KiwisIoT through Channel 2.
Example:
If the DHT11 reading fails, the Serial Monitor displays:
Sending Data to KiwisIoT
The project sends five values to KiwisIoT:
The dashboard receives:
The data is updated every 2 seconds.
Testing the Project
After uploading the code, open the Serial Monitor.
Set the baud rate to:
During testing, you should see output similar to:
When the gas level is below the threshold and no flame is detected, the safety status becomes:
When the gas level reaches the threshold or a flame is detected:
KiwisIoT Dashboard
The final KiwisIoT dashboard can contain five widgets:
Gas Level
Displays the current gas sensor reading.
Example:
Flame Status
Displays:
or
Temperature
Displays the temperature measured by the DHT11.
Example:
Motion Status
Displays:
or
Safety Status
Displays the overall safety condition:
or
This provides a simple real-time view of the industrial safety monitoring system.
Result
The completed system successfully monitors gas level, flame status, temperature, and motion using an ESP8266.
When the gas level reaches the defined threshold or a flame is detected, the system changes the overall safety status to ALERT.
The sensor information is also sent to the KiwisIoT dashboard, where the different safety parameters can be monitored remotely.
The final dashboard shows:
This makes the project a simple practical example of combining ESP8266, multiple sensors, safety monitoring, and IoT.
Applications
This project can be adapted for:
- Industrial safety monitoring
- Workshops
- Laboratories
- Storage areas
- Factory environments
- Equipment rooms
- Server or electrical rooms
- IoT-based safety monitoring
- Student IoT projects
- Safety monitoring prototypes
Future Improvements
The system can be expanded by adding:
- 🚨 Buzzer for local alarm
- 💡 Warning LED indicators
- 📱 Mobile notifications
- 📧 Email alerts
- 📊 Historical sensor graphs
- 🌡️ Additional environmental sensors
- 🖥️ Larger monitoring dashboards
- 🔔 Automatic emergency alerts
- 📷 Camera-based monitoring
- ☁️ Cloud-based data logging
Conclusion
This Industrial Safety Monitoring System with ESP8266, Gas, Flame, DHT11, PIR & KiwisIoT demonstrates how multiple sensors can be combined to monitor important safety conditions through an IoT platform.
The ESP8266 collects and processes the sensor readings, while KiwisIoT provides a real-time dashboard for monitoring gas level, flame status, temperature, motion, and the overall safety condition.
The project can serve as a basic foundation for developing more advanced IoT-based industrial safety monitoring systems.