This tutorial will show you how to make a flame or fire detector circuit with your ARDUINO Board.
Click on video below for full tutorial….
Parts List:
affiliate links:
Schematic:
ARDUINO Code:
int val;
void setup() {
Serial.begin(9600);
}
void loop() {
val = (analogRead(A1));
Serial.println(val);
delay(250);
while (val>300)
{
val = (analogRead(A1));
tone(2,300,500);
delay(500);
tone(2,500,500);
delay(500);
}
}