Datasheet

IDUINO for Maker’s life
www.openplatform.cc
Here is a example for how to use both the analog pin(A0) and digital pin(D0), connect
the circuit as below, upload this sketch, open the Serial Monitor, you will see the real-
time value of the thermal resistance, and once the flame closing to it, the value will
change. If the value reaches a certain threshold, the D0 pin will output High signal
meanwhile the LED13 turns on. And threshold can be adjusted by potentiometer.
********Code begin********
int Led = 13 ;// define LED Interface
int buttonpin = 3; // define the flame sensor interface
int analoog = A3; // define the flame sensor interface
int val ;// define numeric variables val
float sensor; //read analoog value
void setup ()
{
pinMode (Led, OUTPUT) ;// define LED as output interface
pinMode (buttonpin, INPUT) ;// output interface defines the flame sensor
pinMode (analoog, INPUT) ;// output interface defines the flame sensor
Serial.begin(9600);
}
void loop ()
{
sensor = analogRead(analoog);