mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-03-15 05:17:30 +03:00
Updated example of MQ-2
This commit is contained in:
parent
42d7bbde54
commit
0d6f206806
@ -47,6 +47,14 @@ void setup() {
|
||||
Remarks: This function use readPPM to read the value in PPM the gas in the air.
|
||||
************************************************************************************/
|
||||
//Read the sensor and print in serial port
|
||||
int lecture = MQ2.readSensor("", true);
|
||||
//Lecture will be saved in lecture variable
|
||||
int lecture = MQ2.readSensor("", true); // Return LPG concentration
|
||||
// Options, uncomment where you need
|
||||
//int lecture = MQ2.readSensor("H2", true); // Return H2 concentration
|
||||
//int lecture = MQ2.readSensor("LPG", true); // Return LPG concentration
|
||||
//int lecture = MQ2.readSensor("CO", true); // Return CO concentration
|
||||
//int lecture = MQ2.readSensor("Alcohol", true); // Return Alcohol concentration
|
||||
//int lecture = MQ2.readSensor("Propane", true); // Return Propane concentration
|
||||
//int lecture = MQ2.readSensor("Benzene", true); // Return Benzene concentration
|
||||
delay(400);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user