๐ฅ Flame Guard: Real-Time Fire Detection Using ESP8266 and KiwisIoT Platform
Introduction
Flame Guard is an IoT-based flame detection and monitoring project developed using ESP8266 NodeMCU and a Flame Sensor Module.
The system detects flame conditions and sends sensor data through Wi-Fi to the KiwisIoT Platform for real-time remote monitoring.
๐ ๏ธ Hardware Components
- ESP8266 NodeMCU
- Flame Sensor Module
- Jumper Wires
- USB Cable
โ๏ธ How It Works
- The flame sensor detects flame conditions.
- ESP8266 reads the digital output from the sensor.
- The sensor status is processed by the microcontroller.
- ESP8266 transmits the data through Wi-Fi.
- The KiwisIoT Platform dashboard displays the flame status.
๐ Circuit Connections
| Flame Sensor | ESP8266 |
|---|---|
| VCC | 3.3V |
| GND | GND |
| DO / OUT | D5 |
๐ KiwisIoT Platform Integration
The project uses two dashboard channels:
- Channel 0: Flame Status (True / False)
- Channel 1: LED Status (1 / 0)
The dashboard provides a simple way to monitor the sensor status remotely.
๐ System Architecture
Flame Sensor โ ESP8266 NodeMCU โ Wi-Fi โ KiwisIoT Platform โ Dashboard
Arduino code
/*
* Project: Flame Sensor Fire Detection with ESP8266 and KiwisIoT
* Project ID: KIWISIOT-007
* Board: ESP8266 NodeMCU
* Sensor: Flame Sensor Module
*/
#include <ESP8266WiFi.h>
#include <KiwisIoT.h>
const char* ssid = "YOUR_WIFI_NAME";
const char* pass = "YOUR_WIFI_PASSWORD";
const char* topic = "YOUR_DASHBOARD_TOPIC_ID";
#define FLAME_PIN D5
KiwisIoT kiwisiot(ssid, pass, topic);
void sendFlameStatus() {
int flameState = digitalRead(FLAME_PIN);
String flameStatus;
int ledStatus;
if (flameState == LOW) {
flameStatus = "True";
ledStatus = 1;
}
else {
flameStatus = "False";
ledStatus = 0;
}
Serial.println();
Serial.println("---------- FLAME MONITORING ----------");
Serial.print("Flame Sensor Value: ");
Serial.println(flameState);
Serial.print("Flame Status: ");
Serial.println(flameStatus);
Serial.print("LED Status: ");
Serial.println(ledStatus);
if (flameState == LOW) {
Serial.println("Flame: DETECTED");
}
else {
Serial.println("Flame: NOT DETECTED");
}
kiwisiot.send("0", flameStatus);
Serial.print("Sent to KiwisIoT Channel 0: ");
Serial.println(flameStatus);
kiwisiot.send("1", String(ledStatus));
Serial.print("Sent to KiwisIoT Channel 1: ");
Serial.println(ledStatus);
}
void setup() {
Serial.begin(115200);
Serial.println(" FLAME MONITORING ");
pinMode(FLAME_PIN, INPUT);
Serial.println("Flame sensor initialized");
Serial.println("Connecting to KiwisIoT...");
kiwisiot.begin();
Serial.println("KiwisIoT initialized");
Serial.println("Starting flame monitoring...");
}
void loop() {
kiwisiot.run();
static unsigned long lastSend = 0;
if (millis() - lastSend >= 2000) {
lastSend = millis();
sendFlameStatus();
}
delay(100);
}
๐ป Technologies Used
- Embedded C / Arduino Programming
- ESP8266 Wi-Fi Communication
- Internet of Things (IoT)
- KiwisIoT Platform
Realtime image
๐ฏ Applications
- IoT-based fire monitoring demonstrations
- Smart building safety concepts
- Sensor-based monitoring systems
- Educational IoT projects
๐ Conclusion
This project helped me understand how hardware sensors, microcontrollers, Wi-Fi communication, and IoT dashboards work together to build a real-time monitoring system.
Building small projects is a great way to improve practical technical skills!
GitHub Reference:KiwisIoT-Projects/esp8266/007-flame-kiwisiot at main ยท Kiwistron/KiwisIoT-Projects
My Repository:https://github.com/bala02102008/FLAME-GUARD-REAL-TIME-FIRE-DETECTION-SYSTEM-WITH-ESP8266-KIWISIOT-WEBSITE
โ ๏ธ Safety Note
This is an educational prototype, not a certified fire alarm or safety system. It should not replace approved fire detection equipment.
๐ Feedback
I would love to hear your suggestions and feedback to improve this project!



Top comments (0)