Smart fire protection system for buildings

Students Projects



Smart fire protection system for buildings

Smart fire protection system for buildings

Created By

  • Yash Nilesh Ghunavat1-03

    Advit Pandey

    I am Advit. I study in class 6. I joined Mechatron Robotics as I like making different kinds of cars, remote control machines. It’s a very fun and engaging activity. The best project I’ve made till now is Smart Fire Protection System.

About This Project

My project Smart fire protection system for buildings is about the safety for people in skyscrapers if there is a fire in the building so the people could be alerted by the piezo and the sprinkler placed in every floor will be turned on to extinguish and the exhaust which also placed at every floor will be turned on to take the out the smoke as well. As we know that if there is smoke in the skyscraper so the visibility is zero so that’s why I have placed a neopixel strip at the exit gate to show the way out and I have used green color for my neopixel LED strip because when there is smoke in the room, green color can effectively be seen and also I have a bulb which will indicate us.I decided to make it because in tall buildings like Burj Khalifa its hard to know where is the fire so the gas sensor will help us in the fire by telling us there is fire somewhere so people could exit quickly and the fire department could quickly come to put off the fire till it spreads the whole building.

My project works like when the fire will reach the gas sensor the piezo will buzz and red light will glow and the bulb will also glow they will indicate everyone in the building that there is fire in the building the exhaust motor and the sprinkler motor will be turned on to extinguish the fire and the exhaust motor will be turned on to take the smoke out of the building. The green neopixel LED strip placed at gate will be turned on to show the way to exit this is how my project works.


Components Required

  • Arduino UNO
  • Gas Detection Sensor, Hydrogen
  • Breadboard
  • Buzzer,Peizo
  • Jumper Wires
  • Alphanumeric Lcd 16 X 2
  • DC Motor
  • RGB Diffused Commom Diode
  • Resistor 220 ohm
  • Through Hole Resistor 10Kohm
  • LED Strp, Neopixel Digital RGB


In this image all the components with the connections are given

Smart fire protection system for buildings

Code Of Project

#include <Adafruit_NeoPixel.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 10, 11, 12, 13);


const int dinPin = 3;

const int numOfLeds = 16;

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(numOfLeds, dinPin, NEO_GRB + NEO_KHZ800);
int Gas_Sensor_Value = 0;
int Gas_sensor = A0;
int Piezo    = 7;
int RGB_red  = 6;
int RGB_green = 5;
int exhaust_motor = 4;
int sprinkler_motor = 2;

void setup() 
  lcd.begin(16, 2); // set up the LCD's number of columns and rows:
  pinMode(Gas_sensor, INPUT);
  pinMode(Piezo, OUTPUT);
  pinMode( RGB_red, OUTPUT);
  pinMode( RGB_green, OUTPUT);
  pinMode( exhaust_motor,OUTPUT);
void loop() 
   Gas_Sensor_Value = analogRead(A0);

   if( Gas_Sensor_Value >= 700)
  for(int i=0;i<numOfLeds;i++){
  pixels.setPixelColor(i, pixels.Color(0,255,0));;
    digitalWrite(sprinkler_motor, HIGH);
    digitalWrite(Piezo, HIGH);
    digitalWrite(exhaust_motor, HIGH);
    digitalWrite(RGB_red, HIGH);
    digitalWrite(RGB_green, LOW);
    lcd.print("Burj Khalifa is"); // Print a message to the LCD.
   lcd.print("on fire!");
   digitalWrite( exhaust_motor, LOW);
   digitalWrite(sprinkler_motor, LOW);
   digitalWrite(Piezo,    LOW);
   digitalWrite(RGB_red,  LOW);
   digitalWrite(RGB_green, HIGH);
   lcd.print("Burj Khalifa"); // Print a message to the LCD.
   lcd.print("is Safe");