Professional Documents
Culture Documents
Fire Alerting System Project Report
Fire Alerting System Project Report
IOT Based Fire Alerting System uses one Sensor, namely, Flame sensor (KY-026) ..
ESP8266 is a chip which is used for connecting micro-controllers to Wi-Fi network. ESP8266
will then the following data to the IOT website, where, authorized people can take appropriate
measure in order to curb the fire.
Device ID is the unique ID given to a device, which would help the personnel get information
related to the location, where the fire is detected.
The Pre-requisite for this IoT based fire alarming system is that the Wi-Fi module should be
connected to a Wi-Fi zone or a hotspot. This project is also implemented without the IOT
module. In place of the IOT module, we have used Blynk app, by which a notification is
triggered when the buzzer is turned ON.
Technical Specifications:
The components that are used in the IOT based Fire Alerting System using Flame Sensor project
are:
1.Breadboard
3.Buzzer
4.Usb cable
6.JUMPER WIRE
Implemented Code
//Blynk Fire Alarm Notification
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
BlynkTimer timer;
char auth[] = "6ced08cd273148a4a81162544bcc3b26"; //Auth code sent
via Email
char ssid[] = "Hacked"; //Wifi name
char pass[] = "0123456789"; //Wifi Password
int flag=0;
void notifyOnFire()
{
int isButtonPressed = digitalRead(D1);
if (isButtonPressed==1 && flag==0) {
Serial.println("Fire in the House");
Blynk.notify("Alert : Fire in the House");
flag=1;
}
else if (isButtonPressed==0)
{
flag=0;
}
}
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode(D1,INPUT_PULLUP);
timer.setInterval(1000L,notifyOnFire);
}
void loop()
{
Blynk.run();
timer.run();
}