Smart Fire System

This Arduino Smart Fire Detector is designed to detect signs of fire—specifically heat using a temperature sensor and a flame sensor. It’s a simple but effective way to simulate how real fire detection systems work, and it helps demonstrate how sensors, outputs, and code work together in an Arduino project.
Supplies
Arduino Uno
LEDs
220Ω Resistors
Flame Detector
Piezo Buzzer
Temperature Sensor
Breadboard
Jumper Wires
What Do They Do?
- Arduino Uno
- The main microcontroller board that reads data from the sensors and controls the outputs (LEDs, buzzer, etc.).
- Breadboard
- A platform for building and testing the circuit without soldering. All components and wires are connected here.
- LED
- Indicates normal & unordinary conditions. Turns on and off when the system is in a safe and or not.
- Piezo Buzzer
- Produces a loud sound when fire or abnormal heat is detected, acting as an audible alarm.
- Flame Sensor Module
- Detects light in the infrared spectrum, which is commonly emitted by flames. Sends a signal to the Arduino when a flame is detected.
- Temperature Sensor (TMP36)
- Measures ambient temperature. The Arduino uses this reading to detect abnormal heat levels.
- Resistors
- Limit the current going to the LEDs to prevent damage. Each LED has its own resistor.
- Jumper Wires
- Used to connect all the components together, allowing signals and power to flow between the Arduino, sensors, and outputs.
- USB Cable
- Powers the Arduino and allows you to upload code from the computer.
Assemble

LED's:
- Red 1 → Pin 3
- Red 2 → Pin 4
- Green 1 → Pin 10
Buzzer:
- Positive → Pin 7
- Negative → GND
Temperature Sensor:
- Positive → Positive
- Negative → GND
- Analog → A0
Flame Sensor:
- DO → Pin 2
- Positive → Positive
- GND → Negative
A0 → A1
Upload Code




Code is designed to:
- Detect fire
- Trigger an alarm using:
- An LED light (Red)
- A buzzer
- Temperature sensor
- Flash lights until the fire is gone
How it works:
- Sensors used: Temperature and flame sensor
- Trigger condition: Detects fire in a certain distance close by
Sensor output: High (Fire) or Low (No fire)
Key variables:
How it works:
- Sets heat temperature to a certain variable to know whats considered hot
- Sets a certain temperature for room thats normal, anything above it is considered abnormal
Key variables:
How it works:
- Reads temperature in serial monitor
- Sets the assigned temperature to Celsius
- When in serial monitor, it'll print both the flame and temperature values under each name
Key variables:
How it works:
- When code starts, everything besides the green light will be set to off
Key variables:
How it works:
- If a fire is detected, the green light will turn off and the buzzer will turn on in intervals
- The red LED will flash on and off repeatedly under these conditions
- If theres no fire, everything will be set to normal
Final Thoughts
This project taught me how to integrate multiple sensors into a single Arduino program and respond to different types of input. I also learned the importance of clean wiring for reliability.
Possible improvements:
- Add an LCD screen to show temperature and flame status.
- Include a GSM module to send SMS alerts.
- Power the system with a rechargeable battery for portability.