hey guys, so this is my own flame sensor project , im gonna show you guys how it works. This project is very simple to just prove the basics

ok guys, 


so know im gonna explain you guys how i do this flame sensor project since i think the diagram doesnt look that clear for u guys to see...i dont know why is the software like that.. ok so im gonna move on


BUZZER : positive terminal - pin 3

negative terminal - pin GND on the breadboard

LED : positive terminal - pin 7

negative termnial - pin GND

FLAME SENSOR : pin A0 connect to pin A0 on the arduino board

pin GND connect to pin GND on the breadboard

pin + connect to the 5V


and then we proceed with the code:

(You guys are welcome to copy the code)




int sensorPin = A0; // select the input pin for the LDR


int sensorValue = 0; // variable to store the value coming from the sensor


int led = 9; // Output pin for LED


int buzzer = 12; // Output pin for Buzzer


void setup() {


// declare the ledPin and buzzer as an OUTPUT:


pinMode(led, OUTPUT);








void loop()




Serial.println("Welcome to TechPonder Flame Sensor Tutorial");


sensorValue = analogRead(sensorPin);




if (sensorValue < 100)




Serial.println("Fire Detected");


Serial.println("LED on");