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.

MQ7 Class

Module: gas

The Grove MQ7 Gas Sensor module is useful for detecting Carbon Monoxide (CO) concentrations in the air. It has a detection range of 20-2000 ppm.
For optimum use, it requires calibration after a pre-heat time of 48 hours. See the datasheet for details.
mq3-9.jpeg

Item Index

Methods

Methods

MQ7

(
  • gasPin
)
Number

MQ7 constructor

Parameters:

  • gasPin Number

    Analog pin where the sensor is connected

Returns:

Number:

name

() String

Returns the name of the sensor

Returns:

String: