/mq135

MQ135 gas sensor support

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Mongoose OS library for MQ135 GAS SENSOR

Mongoose OS api for MQ135 Air Quality sensor (CO2 meter) Based on ViliusKraujutis MQ135 library for Arduino.

mq135

mq135pins

Getting Started

  1. Download and install Mongoose OS.
  2. You have a complete documentation and video tutorials about Mongoose OS.

Usage of MQ135 Library

Any GPIO pin with ADC capability can be used

MQ.MQ135.attach(pin);

You can use ambient temperature/humidity correction factor:

MQ.MQ135.getCorrectedPPM(temperature, humidity);

Note:

  • This type of sensor needs 24h after powered to "warning-up" (calibration).

Example of MQ135 Library

See example.