Due to its black epoxy, the sensor is sensitive to infrared radiation. With an extra buzzer and LED, you can easily build a fire alarm system. Features High-performance: Detecting fires or light of the wavelength in the range of 760nm ~ 1100nm High-speed: Detecting speed up to 15μS/...
float sinVal; int toneVal; void setup(){ pinMode(8, OUTPUT); //Set the buzzer pin as output Serial.begin(9600); //Set the baud to 9600 } void loop(){ int sensorValue = analogRead(0);//Read the Analog value from Flame sensor Serial.println(sensorValue); delay(1); if(sensorValue...