The problem
An automatic fire extinguisher system with flame sensing and solenoid control detects a flame with an infrared sensor and releases extinguishing agent without waiting for a person to notice the fire. In a laboratory or small workshop, a fire that starts in an empty room can grow for minutes before anyone smells smoke, and a wall-mounted manual extinguisher is useless if nobody is there to pick it up. This project closes that gap at demonstration scale: a KY-026 flame sensor watches a test tray, an Arduino Uno reads the sensor, and when the infrared level crosses a set threshold the controller energises a relay that opens a 12 V solenoid valve, spraying extinguishing agent at the flame while a buzzer sounds the alarm. The rig is built for controlled test flames in a college laboratory, so students can tune the threshold, time the response and explain every link in the sense-decide-actuate chain instead of describing a black box.
| Feature | Manual extinguisher | This automatic system |
|---|---|---|
| Needs a person present | Yes | No — the flame sensor triggers it |
| Response | After the fire is discovered | Within seconds of detection (design target) |
| Alarm on detection | None built in | Buzzer sounds and red LED lights |
| Intended scale | Real fires | Controlled test flames only |
Detects flame infrared in the 760-1100 nm band over about 60-100 cm.
Follow the working sequence
How it works
The automatic fire extinguisher system runs a sense-decide-actuate loop: the KY-026 flame sensor watches the test tray for infrared in the 760–1100 nm band, the Arduino Uno reads that signal and compares it with a set threshold, and when the level stays above the threshold the controller energises a relay that opens a 12 V solenoid valve, releasing extinguishing agent at the flame. The YG1006 phototransistor converts flame infrared into a current, the LM393 comparator turns it into a clean digital decision, and the Arduino adds a confirmation delay so a brief flash does not trigger a spray. A buzzer and red LED sound the alarm at the same moment, the valve closes after a configurable spray duration, and the system latches in ALARM until reset. Builder note: the threshold is tuned with the test flame lit and the room lights on, because a setting that ignores daylight near a window still trips under a halogen desk lamp.
- The KY-026 flame sensor is aimed at the metal test tray and continuously measures infrared radiation in the 760–1100 nm band.
- The Arduino Uno reads the sensor's analog output and compares it with the configured threshold on every loop.
- When the reading stays above the threshold for the confirmation delay, the Arduino confirms a real flame rather than a brief flash.
- The Arduino energises the single-channel relay module, which switches the separate 12 V supply to the normally-closed solenoid valve.
- The solenoid valve opens and extinguishing agent flows through the nozzle onto the test flame for the configured spray duration.
- At the same moment a buzzer sounds and a red LED lights, and the system latches in ALARM state until the reset button is pressed.
- After the spray duration the valve closes automatically, and the system re-arms on reset for the next demonstration.
Tech stack:
- Arduino Uno (ATmega328P)
- KY-026 flame sensor module
- Single-channel relay module
- 12 V solenoid valve
- Arduino IDE
- 12 V DC power supply
- Buzzer · LED indicators
- Breadboard · jumper wires
| Parameter | Value |
|---|---|
| Controller | Arduino Uno (ATmega328P, 16 MHz clock) |
| Flame sensor | KY-026 module, YG1006 IR phototransistor, LM393 comparator |
| Detection band | 760–1100 nm (datasheet value) |
| Detection distance | Approximately 60–100 cm for a small test flame (datasheet value, flame-size dependent) |
| Detection angle | Approximately 60 degrees (datasheet value) |
| Solenoid valve | 12 V DC, normally closed (design) |
| Relay | Single-channel 5 V relay module, 10 A contacts (datasheet value) |
| Alarm | 5 V active buzzer and red LED |
| Power supply | 12 V DC, 2 A adapter (design target) |
| Spray duration | Configurable in firmware, default 5 s (design target) |
| Response | Design target under 2 s from confirmed detection to valve opening |
Project features
The automatic fire extinguisher system is built around four capabilities that work as one chain: infrared flame sensing, a microcontroller decision, relay-driven solenoid release, and a simultaneous audible alarm. The KY-026 flame sensor watches the test tray continuously and reports both an analog infrared level and a digital threshold output, so the Arduino can react to a flame and the student can watch the raw signal change. The Arduino Uno compares the reading against a set threshold, and on a confirmed detection it energises a relay module that switches the separate 12 V supply to the normally-closed solenoid valve, opening the flow of extinguishing agent to the nozzle. A buzzer and red LED fire at the same moment, so the demonstration shows detection and alarm together, and a manual test button plus an adjustable sensitivity control let the student demonstrate, tune and reset the rig without rewiring it.
- [KY-026 flame sensing] A YG1006 infrared phototransistor detects flame radiation in the 760–1100 nm band (datasheet value), with an LM393 comparator giving a clean digital output and an analog output for live signal monitoring.
- [Automatic solenoid release] On confirmed flame detection the Arduino energises a relay that opens a normally-closed 12 V solenoid valve, directing extinguishing agent through the nozzle at the test flame.
- [Buzzer and LED alarm] A 5 V buzzer and red LED sound and light the moment a flame is detected, so the alarm and the extinguishing action are demonstrated together.
- [Adjustable sensitivity] The sensor board potentiometer and a firmware threshold both adjust when the system trips, letting the student tune out room light and set the detection distance for their demo space.
- [Manual test and reset] A push-button fires a test cycle without a flame, and a reset returns the valve to closed and the system to armed, so repeated demonstrations run without rewiring.
- [Isolated 12 V valve drive] The relay separates the Arduino 5 V logic from the 12 V solenoid supply, demonstrating safe switching of a higher-power load from a microcontroller.
- [Timed spray cycle] The valve opens for a configurable spray duration (default 5 s, design target) and then closes automatically, so the agent is not wasted after the flame is out.
What is included
- Working prototype: Arduino Uno, KY-026 flame sensor, relay module, 12 V solenoid valve, extinguisher cylinder, nozzle, buzzer and test tray
- Arduino firmware with configurable threshold, confirmation delay and spray duration
- Circuit and wiring documentation with a labelled connection table
- Component list with part numbers and suppliers
- Threshold-tuning and safe demonstration procedure for controlled test flames
- Project report PDF (background, working, results, limitations)
- PPT presentation for final review
- Viva Q&A preparation document (flame sensing, relay switching, solenoid drive, safety limits)
Limitations & prerequisites
- Demonstration prototype only: it is not a certified fire-suppression system and is not a substitute for real extinguishers, smoke alarms or a fire service.
- Built for controlled test flames in a metal tray only; it cannot handle a real room fire or a spreading fire of any size.
- Detection is limited to flames within approximately 60–100 cm and a roughly 60-degree cone in front of the sensor (datasheet values).
- Direct sunlight, halogen lamps and other strong infrared sources can false-trigger the sensor; the threshold must be tuned in the actual demo room.
- No smoke sensing: a smouldering fire with no visible flame is not detected.
- The small agent cylinder holds a limited discharge sized for one test-tray flame; it is not a full-size extinguisher.
- The 12 V solenoid needs a mains adapter in the base build; there is no battery backup.
- The under-2-second response is a design target, not a measured claim; the report records the timing the student measures on their own build.
Frequently Asked Questions
Is this project suitable for a final-year project?
Yes, for Electrical, Electronics and E&TC final-year students. It demonstrates sensor interfacing, comparator and threshold logic, relay switching of a 12 V load, solenoid actuation and safety-aware design in one working prototype, with a clear demonstration for the review and enough tuning and measurement work to discuss in the viva.
Which controller and sensor are used?
An Arduino Uno (ATmega328P) and a KY-026 flame sensor module built around the YG1006 infrared phototransistor. The sensor detects flame radiation in the 760–1100 nm band (datasheet value) and gives both a digital threshold output through its LM393 comparator and an analog output for live signal monitoring.
Can it put out a real room fire?
No. This is a small-scale demonstration prototype for controlled test flames in a metal tray in a college laboratory. It is not a certified fire-suppression system, it cannot handle a real room fire, and it must never be presented as a substitute for a real extinguisher, a smoke alarm or calling the fire service.
What power supply is needed?
A 12 V DC, 2 A adapter (design target) powers the solenoid valve, while the Arduino runs from USB or the same supply through a regulator. The relay module keeps the 5 V Arduino logic electrically separate from the 12 V valve circuit, which is part of the safety design.
Can the sensitivity be adjusted?
Yes, in two places: the potentiometer on the KY-026 board sets the hardware threshold, and the firmware threshold and confirmation delay are configurable in the Arduino code. Both must be tuned in the actual demo room, since sunlight and halogen lamps also emit infrared in the sensor's band.
What will I receive with the project?
The working prototype with Arduino Uno, KY-026 flame sensor, relay module, 12 V solenoid valve, extinguisher cylinder, nozzle, buzzer and test tray, plus the Arduino firmware, wiring documentation, component list, threshold-tuning and safe demonstration procedure, report PDF, PPT and viva Q&A document.
Related projects
- Fire Fighting Robot with Flame Sensors and Water Pump (Arduino): https://projectech.in/projects/fire-fighting-robot-flame-sensors-water-pump-arduino/
- ESP32 Smart Fire and Gas Alarm with Smoke Sensing and Telegram Alerts: https://projectech.in/projects/esp32-smart-fire-gas-alarm-smoke-sensing-telegram-alerts/
- Fire Alarm System with Smoke and Heat Detection and Zone Indication: https://projectech.in/projects/fire-alarm-system-smoke-heat-detection-zone-indication/
- Home Security System with Arduino Mega, Keypad, Laser and Flame Sensors: https://projectech.in/projects/home-security-system-arduino-mega-keypad-laser-flame-sensors/
- Smart Gas Leakage Detector with Automatic Valve Shutoff: https://projectech.in/projects/smart-gas-leakage-detector-with-automatic-valve-shutoff/
Components & software requirements
- Arduino Uno (ATmega328P)
- KY-026 flame sensor module
- Single-channel relay module
- 12 V solenoid valve
- Arduino IDE
- 12 V DC power supply
- Buzzer · LED indicators
- Breadboard · jumper wires
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.