Fire & Smoke Detection System – Arduino Code & Project Report
₹199.00Current price is: ₹199.00.₹499.00 Original price was: ₹499.00.
Arduino-based fire and smoke detection system with MQ-2 smoke sensor, flame sensor, 16×2 I2C LCD and buzzer. Detects smoke and fire in real time across four alert states — SAFE, SMOKE, FIRE and DANGER — with smart buzzer patterns and false-alarm filtering.
Includes the complete 14-page project report (PDF) and the full Arduino code (.ino), plus block diagram, circuit diagram, component list and applications.
Product Description
Fire & Smoke Detection System using Arduino – Code & Project Report
Note: This is a digital product only. No physical hardware or components will be shipped.
The Fire & Smoke Detection System is a complete Arduino-based safety project that detects both smoke and fire in real time and raises an immediate alert. Built with an MQ-2 smoke sensor, a flame sensor, a 16×2 I2C LCD and a buzzer, it is an ideal final-year project for engineering and diploma students, and a strong entry for science exhibitions and Inspire Award competitions.
About the Project
Traditional fire alarms react late and give no indication of what is actually happening. This system monitors two independent hazards at the same time — smoke via the MQ-2 sensor and flame via an IR flame sensor — and reports the exact condition on an LCD screen while sounding a buzzer that changes pattern depending on severity.
The firmware is built around a clear four-state machine: SAFE, SMOKE, FIRE and DANGER. Each state has its own LCD message and its own buzzer rhythm, so the user instantly knows whether there is smoke, an open flame, or both. Analog readings from the MQ-2 are averaged to reject noise, and flame readings are confirmed across multiple samples before the system reacts — both measures exist specifically to cut down false alarms.
Project Features
- Real-time smoke detection using the MQ-2 analog gas sensor.
- Real-time flame detection using an IR flame sensor.
- Four-level alert system — SAFE, SMOKE, FIRE and DANGER.
- Smart buzzer patterns that change with the level of danger.
- 16×2 I2C LCD showing live status, sensor values and warning messages.
- Sensor filtering and confirmation logic to reduce false alarms.
- Automatic 30-second sensor warm-up for stable, accurate readings.
- Continuous monitoring with no manual intervention required.
- Clean, commented Arduino code that is easy to modify and extend.
Components Used
- Arduino UNO — main controller.
- MQ-2 Smoke Sensor — analog smoke and combustible gas detection.
- Flame Sensor — digital infrared flame detection.
- 16×2 LCD Display with I2C module — status and warning messages.
- Buzzer — audible alert with level-based patterns.
- Breadboard, jumper wires and power supply.
Circuit Connections
- MQ-2 Smoke Sensor → A0 (analog input)
- Flame Sensor → D8 (digital input with pull-up)
- Buzzer → D9 (digital output)
- LCD → SDA / SCL (I2C)
How to Use — Step by Step
Step 1 — Download your files.
You will receive the Project Report (PDF) and a ZIP containing the Arduino code (.ino). Keep both on your computer. You do not have to unzip anything — the complete Arduino code is also printed inside the PDF on pages 5–10, ready to copy.
Step 2 — Install the Arduino IDE.
Download it free from arduino.cc/en/software and install it on Windows, macOS or Linux.
Step 3 — Install the LCD library.
Open the Arduino IDE and go to Sketch → Include Library → Manage Libraries. Search for “LiquidCrystal I2C” by Frank de Brabander and click Install. This library is required or the code will not compile.
Step 4 — Open the code.
Option A (no unzip): open the PDF, go to page 5, and copy the code into a new Arduino sketch.
Option B: unzip the download and open Fire_And_Smoke_Detector.ino in the Arduino IDE. The IDE may ask to create a folder — click OK.
Step 5 — Select your board and port.
Go to Tools → Board → Arduino AVR Boards → Arduino UNO, then Tools → Port and pick the COM port your Arduino is connected to.
Step 6 — Upload.
Connect the Arduino by USB and click the Upload arrow button. Wait for “Done uploading”.
Step 7 — Wire the circuit.
Follow the circuit diagram in the PDF. Double-check the MQ-2 VCC and GND before powering on — reversing them will damage the sensor.
Step 8 — Power on and wait 30 seconds.
The LCD shows “Sensor Warm-Up” with a countdown. This is normal — the MQ-2 sensor must heat up before its readings are reliable. Do not test with smoke during this time.
Step 9 — Test it.
After “System Ready”, bring a lighter flame near the flame sensor (without touching it) — the LCD should show FIRE ALERT and the buzzer should beep fast. Blow out a match near the MQ-2 to test the SMOKE ALERT. Both together gives DANGER.
Step 10 — Calibrate if needed.
Open Tools → Serial Monitor and set the baud rate to 9600. You will see the live smoke value. In clean air it should read roughly 150–350. If your readings are higher (some MQ-2 modules read differently), open the code and adjust these two lines near the top:
#define SMOKE_THRESHOLD_HIGH 420 #define SMOKE_THRESHOLD_LOW 380
Set HIGH to about 100–150 above your clean-air reading, and keep LOW about 40 below HIGH. Then upload again.
Troubleshooting
- LCD is blank — the I2C address may not be 0x27. Try changing it to 0x3F in the line
LiquidCrystal_I2C lcd(0x27, 16, 2);and re-upload. Also turn the small contrast potentiometer on the back of the I2C module. - Compile error about LiquidCrystal_I2C — the library is not installed. Repeat Step 3.
- Buzzer never sounds — check that the buzzer’s positive pin is on D9 and the negative pin on GND.
- False alarms in clean air — the MQ-2 needs 24–48 hours of first-time burn-in, and the thresholds need calibrating (Step 10).
- Nothing happens at all — confirm the correct COM port is selected and the board is Arduino UNO.
What You Will Get
- Complete Project Report (PDF) — 14 pages, print-ready.
- Full Arduino Code (.ino) — complete, clean and ready to upload; also printed inside the PDF for copy-paste.
- Working principle and block diagram.
- Circuit diagram and connection table.
- Component list with descriptions.
- Circuit explanation and operation details.
- Applications and future scope.
Applications
- Home and residential fire safety.
- College and school science exhibitions.
- Final-year engineering and diploma projects.
- Laboratories, workshops and small industrial units.
- Fire safety training and demonstration models.
Software Requirements
- Arduino IDE (free).
- LiquidCrystal I2C library by Frank de Brabander.
- Standard Wire library (bundled with the Arduino IDE).
Instant download after payment. Your files are available immediately — no waiting, no shipping.








Reviews
There are no reviews yet.