mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-03-15 05:17:30 +03:00
Merge pull request #46 from Prabhuelectro/patch-1
Update smokeDetector.ino
This commit is contained in:
commit
4a3d46f47e
@ -89,7 +89,7 @@ void setup() {
|
||||
//Lecture will be saved in lecture variable
|
||||
MQ4.update();
|
||||
float smokePPM = MQ4.readSensor(); // Sensor will read PPM concentration using the model and a and b values setted before or in the setup
|
||||
if(smokePPM > 1000) {Serial.println("Warning: High concentrations of smoke detected")};
|
||||
if(smokePPM > 1000) {Serial.println("Warning: High concentrations of smoke detected");}
|
||||
MQ4.serialDebug(); // Will print the table on the serial port
|
||||
delay(400);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user