Figure 1: Flame Sensor 
     - It is used to detect and respond to the presence of Flame (or) Fire.
- The detected flame depends on the installation. 
- We will also include sounding an alarm.
Where We Can Fix 
     - Schools/Colleges
- Transport
- Industrial Furnaces etc 
Part Of List: 
     - Arduino Uno
- Flame Sensor
- Jumper Wire 
- USB Cable
- Bread Board. 
 Connection:
 
 Flame Sensor to Arduino:
 
 
 Step 1: Vcc =Postive voltage input 5v
 
 Step 2: A0 =Analog input pin to Arduino
 
Step 3: Gnd =Gnd to Gnd.
 
 
 
 
Step 1:  Fix the buzzer on the breadboard.
 
 Step 2: Connect the positive pin to digital pin 9.
 
Step 3: Connect the negative pin to Gnd.
 
Figure 3:LED
 
Step 1:  Fix the led in the breadboard.
 
Step 2: Connect the positive pin to digital pin 2.
 
Step 3: Connect the negative pin to Gnd.
 
 Program:
 
     - #include < SoftwareSerial.h >  
-     int sensorPin = A0;   
- int sensorValue = 0;   
- int led = 2;   
- int buzzer = 9;   
- void setup()  
- {  
-       
-     pinMode(led, OUTPUT);  
-     pinMode(buzzer, OUTPUT);  
-     Serial.begin(9600);  
- }  
- void loop()  
- {  
-     Serial.println("Welcome to c#corner");  
-     sensorValue = analogRead(sensorPin);  
-     Serial.println(sensorValue);  
-     if (sensorValue < 100)  
-     {  
-         Serial.println("Fire Detected");  
-         Serial.println("LED on");  
-         digitalWrite(led, HIGH);  
-         digitalWrite(buzzer, HIGH);  
-         delay(1000);  
-     }  
-     digitalWrite(led, LOW);  
-     digitalWrite(buzzer, LOW);  
-     delay(sensorValue);  
- }  
 
Explanation:
 
     - This fire can be lightly spread and it will produced a sound. 
- Then automatically emergency light also gets ON. 
- The value of the sensor can be see in the serial monitor.
- When Fire is detected the led can be on (HIGH). 
 Figure 5: Output