Skip to content

DIY Fire Detection

Smart & Safe DIY Fire Detection System in 3 Steps

Build your own Smart & Safe DIY Fire Detection System with just 3 powerful steps using the KY-026 Infrared Flame Sensor, a 5V Relay Module, and a simple 5V Power Supply. This beginner-friendly guide explains the working principle, wiring, and testing process in detail, so you can protect your home with confidence.

We’ll cover the complete bill of materials, circuit diagram explanation, and a clear step-by-step setup process. Whether you’re new to electronics or an experienced hobbyist, this project is easy to follow and uses readily available components. You’ll learn how to detect fire using infrared technology and trigger a relay for alarms or automatic response systems. Create a reliable and affordable solution for fire detection, enhance your safety, and gain hands-on experience with sensor-based electronics.


Introduction.

Fire safety isn’t just for large buildings—even your home workshop can benefit from a reliable early warning system. Today, we’ll build a Smart & Safe DIY Fire Detection System using the KY-026 Infrared Flame Sensor, a 5V Relay Module, and a few jumper wires.

I’ve been working with electronics for over a decade, and trust me—this is one of the simplest yet most effective safety projects you can make. It’s perfect for Arduino enthusiasts, students, or anyone interested in practical electronics.


How the DIY Fire Detection System Works

The KY-026 infrared flame sensor detects infrared light emitted by flames. Once it senses fire, it sends a signal to the 5V relay module. The relay can then activate an alarm or siren or even cut off power to dangerous equipment.

This system can be standalone or integrated into IoT platforms for remote alerts.


Materials for the Project (DIY Fire Detection)

ComponentQuantityDescription/NotesClick & Buy
KY-026 Infrared Flame Sensor1Detects fire by sensing IR lightClick & Buy
5V Relay Module1Controls external devicesClick & Buy
5V DC Power Supply1Powers the systemClick & Buy
Jumper Wires (Male-Female)5–6For connectionsClick & Buy
Breadboard (optional)1For prototypingClick & Buy
Buzzer or Alarm (optional)1Audible alert deviceClick & Buy
Indicator LED (optional)1Visual alertClick & Buy
Resistors (220Ω for LED)1LED current limitingClick & Buy

 


Useful Tools (DIY Fire Detection)

ToolQuantityPurpose / NotesClick & Buy
Soldering Iron Kit1For making permanent connectionsClick & Buy
Solder Wire (60/40, 0.8mm)1Electrical solderingClick & Buy
Wire Stripper & Cutter1Stripping jumper wiresClick & Buy
Mini Screwdriver Set1For module and relay terminal screwsClick & Buy
Multimeter1Testing voltages and continuityClick & Buy
Hot Glue Gun (optional)1Securing components in placeClick & Buy
Small Pliers1Holding and bending wiresClick & Buy
Heat Shrink Tubing Set1Insulating exposed wiresClick & Buy

Download Circuit Diagram

Fire Detection


Circuit Diagram Explanation (DIY Fire Detection)

The circuit is straightforward:

  • VCC of KY-0265V Power Supply

  • GND of KY-026GND

  • Signal Pin of KY-026IN Pin of 5V Relay

  • Relay VCC5V Power Supply

  • Relay GNDGND

  • Relay Output → Connected to alarm or other safety device

When a flame is detected:

  • KY-026 outputs a HIGH signal.

  • The relay is triggered.

  • The alarm (buzzer or siren) activates immediately.


KY-026 Pinout

KY-026 Pinout.

PinLabelFunction
1A0Analog output—voltage changes with flame intensity.
2G or GNDGround connection.
3D0Digital output—HIGH or LOW based on the set threshold.
4VCCPower supply (3.3V–5V).

Step-by-Step Guide (DIY Fire Detection)

Step 1 – Assemble the Components

  • Place the KY-026 flame sensor on the breadboard.

  • Connect jumper wires from KY-026 to the relay module.

  • Wire the relay module to the power supply.

Step 2 – Connect the Output Device

  • Attach a buzzer, siren, or LED to the relay output.

  • If you want to control AC devices, use the relay’s normally open (NO) contact for safety.

Step 3 – Test the System

  • Power up the circuit.

  • Use a lighter or candle at a safe distance to test flame detection.

  • Adjust the KY-026’s sensitivity using its onboard potentiometer.


Safety Tips

  • Never bring large flames near sensitive electronics.

  • Use only small controlled sources like a candle for testing.

  • Ensure your relay is properly rated for the device you’re controlling.


Applications

  • Home fire alarm systems

  • Workshop equipment auto-shutdown

  • Smart home IoT fire alert integration

  • School electronics safety demonstrations


FAQs

Q1: Can I use this system without a microcontroller?
Yes, the KY-026 directly triggers the relay without requiring an Arduino.

Q2: How far can the sensor detect a flame?
Typically up to 80 cm, depending on flame size and sensitivity setting.

Q3: Can it work outdoors?
Yes, but avoid direct sunlight, as it may cause false triggers.

Q4: Can I connect it to Wi-Fi for alerts?
Yes, integrate with ESP8266/ESP32 for IoT notifications.

Leave a Reply

Your email address will not be published. Required fields are marked *