The Iot Explanation
The Iot Explanation
The pin configuration of this sensor is shown below. It includes four pins which
include the following. When this module works with a microcontroller unit then
the pins are
A flame sensor is a crucial component used in fire detection systems to detect the presence of
flames. It is designed to sense the unique characteristics of flames, such as light, infrared radiation,
or ultraviolet radiation, depending on the type of flame sensor. The primary function of a flame
sensor is to trigger appropriate actions, such as sounding alarms, activating fire suppression
systems, or initiating emergency protocols, to mitigate the risk posed by a fire.
Flame sensors are commonly used in industrial settings, commercial buildings, and residential
properties to provide early detection of fires and help prevent potential disasters.
void setup() {
pinMode(flamePin, INPUT);
pinMode(buzzerPin, OUTPUT);
}
void loop() {
flameVal = digitalRead(flamePin); // Read the sensor value
Explanation:
The 10kΩ resistor is used to limit the current flowing through the piezo buzzer.
The code initializes the digital pins connected to the flame sensor and buzzer as input and
output, respectively.
In the loop, the code reads the value from the flame sensor and stores it in the flameVal
variable.
If the flameVal is LOW, it means that a flame has been detected, and the code turns on the
buzzer.
If the flameVal is HIGH, it means that no flame has been detected, and the code turns off the
buzzer.
Can be a learning experience but not a substitute for a certified fire alarm system.
Infrared flame sensors only detect flames, not smoke or other signs of fire.