Introduction
- In this article, I will explain about connecting the Flame Sensor with an Android app.
- When the flame is detected, it will send the message to the app.
Parts Of Lists
- Arduino Mega 2560
- Flame Sensor
- Android App
- Bluetooth
- Hook-Up Wires
- Bread Board
Flame Sensor

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.
Step 1
Connection from the Sensor to the Board.
|
Sensor
|
Board
|
| Vcc | 5v |
| Gnd | Gnd |
| A0 | A1 |
|
Bluetooth
|
Board
|
| Vcc | 5v |
| Gnd | Gnd |
| TX | Rx |
| RX | Tx |
Programming
- const int AOUTpin = A0; //the AOUT
- const int ledPin = 13; //the anode of the LED connects to digital pin D13 of the arduino
- int limit;
- int value;
- void setup()
- {
- Serial.begin(9600);
- //sets the baud rate pinMode(DOUTpin, INPUT);
- //sets the pin as an input to the arduino pinMode(ledPin, OUTPUT);
- //sets the pin as an output of the arduino
- }
- void loop()
- {
- value = analogRead(AOUTpin); //
- limit = digitalRead(DOUTpin); //
- Serial.print("Fire value: ");
- Serial.println(value); //prints the CO value
- Serial.print("Level: ");
- Serial.print(limit); //prints the limit reached as either LOW or HIGH (above or underneath)
- delay(100);
- if (limit == HIGH)
- {
- Serial.println("fire dected");
- }
- else
- {
- Serial.println("Fire not dected");
- }
- }
Explanation
- We have to connect the Android app in the mobile from the Playstore
- When the fire is detected, it can be used to send the message to the app
- When the fire is detected, it will send the message: "Fire Detected."

Shobana JPosted Jul 8, 2016, 4:08 AM
Keep sharing.Nice one
Sr KarthigaPosted Jul 5, 2016, 10:37 AM
Thank you prasanna
Sr KarthigaPosted Jul 5, 2016, 10:36 AM
Thank you santhakumara sir
Sr KarthigaPosted Jul 5, 2016, 10:36 AM
Thank you santhakumar sir]
Sr KarthigaPosted Jul 5, 2016, 10:35 AM
Thank you vignesh mani sir
Sr KarthigaPosted Jul 5, 2016, 10:35 AM
Thank you debasis sir
Sr KarthigaPosted Jul 5, 2016, 10:34 AM
Thank you raja
Santhakumar MunuswamyPosted Jun 25, 2016, 2:56 AM
Nice share
Prasanna MuraliPosted Jun 21, 2016, 9:32 PM
Nice one..
Vignesh ManiPosted Jun 15, 2016, 8:45 AM
Nice one
Debasis SahaPosted Jun 15, 2016, 12:48 AM
Good share..
RajaPosted Jun 15, 2016, 12:19 AM
Good One...