miguel5612 / MQSensorsLib

We present a unified library for MQ sensors, this library allows to read MQ signals easily from Arduino, Genuino, ESP8266, ESP-32 boards whose references are MQ2, MQ3, MQ4, MQ5, MQ6, MQ7, MQ8, MQ9, MQ131, MQ135, MQ136, MQ303A, MQ309A.
MIT License
169 stars 64 forks source link

Serial outputs table but I only want the ppm result of that table #38

Closed quintendewilde closed 2 years ago

quintendewilde commented 4 years ago

@miguel5612 I loooooove your library!!!! Only one that works of the bat.

But I can't seem to find how to get the ppm of an mq4 and mq8 sensor.

KlausMu commented 3 years ago

float ppm = MQ4.readSensor();

The method "readSensor()" has a return value. Only the examples are not using it.

miguel5612 commented 2 years ago

Thanks KlausMu Thats correct!