MQ135 Air Quality Sensor
This module interfaces with the MQ135, They are used in air quality control equipments for buildings/offices, are suitable for detecting of NH3,NOx, alcohol, Benzene, smoke, CO2, etc. Support is included in the MQ135 (About Modules) module.
|Preheat time||over 24h|
Note that the "warning-up" time of this class of Sensor is over 24 hours to get trusted data.
|1 (Vcc)||VBat (5V)|
*You can use any GPIO with ADC support. See in board pin references
require("MQ135").connect(pin) to get a MQ135 object. Take use of this object call getPPM method
var mq = require("MQ135").connect(A7); console.log(mq.getPPM());
You can also use the ambient temperature/humidity correction factor:
var mq = require("MQ135").connect(A7); var temperature = 25; var humidity = 80; console.log(mq.getCorrectedPPM(temperature, humidity));
Its recommended to get this ambient data to get more precise PPM value. You can use DHT11 Espruino Module for this propose.
MQ135 parts and modules can be purchased from many places: