Library sensor MQ-135 for boards Arduino
MQ135(uint8_t pin, bool isPower5v=true, float res2=2000);
- pin : the pin Analog connect
- isPower5v: the level logic of sensor (default 5v)
- res2 : the resistor R2 base on Schematic (default 2kΩ)
void begin();
void readAirQuality(uint8_t unit=PPM);
- unit: select unit, default (ppm)
- PERCENT_AIR (%)
- PPM (ppm)
+ air.max
+ air.min