DEV Community

Cover image for Flame Guard: Real-Time Fire Detection Using ESP8266 and KiwisIoT Platform
manikanda balamurugan S
manikanda balamurugan S

Posted on

Flame Guard: Real-Time Fire Detection Using ESP8266 and KiwisIoT Platform

๐Ÿ”ฅ 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

  1. The flame sensor detects flame conditions.
  2. ESP8266 reads the digital output from the sensor.
  3. The sensor status is processed by the microcontroller.
  4. ESP8266 transmits the data through Wi-Fi.
  5. 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);
}

Enter fullscreen mode Exit fullscreen mode

๐Ÿ’ป 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!

IoT #ESP8266 #NodeMCU #Arduino #EmbeddedSystems #FlameSensor #KiwisIoT

Top comments (0)