DFRobot Flame Sensor
I am using DFRobot Flame Sensor. Here is the code that is posted in the product's wiki site (from DFRobot).
Can anybody please help? Thanks!
Code: Select all
But how can I know if there is fire or not? What should be the sensor value if the fire is on? off?void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(A0);
Serial.println(sensorValue);
}
Can anybody please help? Thanks!
2018-04-28 14:34:14 The analog value is effected by flame intensity, flame position (angle & distance), which detects if the fire is big or close to the sensor rather than if there is flame, but if the analog value is over 0, then there should be fire in its scope. robert.chen