GAS SENSOR
Driver for the Adafruit MiCS5524 CO, Alcohol and VOC Gas Sensor. The hardware documentation for this module can be found here.
Installation
npm install tessel-mics5524-gas-sensor --save
Example
/*********************************************This basic gas sensor example*********************************************/ var gasSensor = ; // automatically create the new instance of the GasSensor classvar gasSensorInstance = gasSensor; // start reading valuesgasSensorInstance; // stop reading values after 5s;
Methods
gasSensorInstance.getGasLevel(cb)
Get the current gas level.
gasSensorInstance.startReading(readInterval, cb)
Start reading the gas level in the specified time interval
gasSensorInstance.stopReading()
Stops reading the gas level
Licensing
MIT