UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

MQ6 Class

Module: gas

The MQ6 Gas Sensor module is useful for detecting LPG, iso-butane, propane, and LNG concentrations in the air. It has a detection range of 200-10000 ppm.
For optimum use, it requires calibration after a pre-heat time of at least 24 hours. See the datasheet for details.
mq2-5.jpeg

Item Index

Methods

Methods

MQ6

(
  • gasPin
)
Number

MQ6 constructor

Parameters:

  • gasPin Number

    Analog pin where the sensor is connected

Returns:

Number:

name

() String

Returns the name of the sensor

Returns:

String: