Soldered.com ↗ GitHub ↗
Full product documentation, content & links

VOC Sensor MQ138 Breakout

Sensors & Modules › Environmental (Temp, Humidity, Gas)
Sale
Interface ['analog', 'digital_gpio'] Qwiic No

End of life: no longer made or sold. This page is kept as an archive.

The MQ138 VOC sensor detects air quality by monitoring formaldehyde and other harmful gases with digital and analog outputs.

The MQ138 sensor is specifically designed to detect various gases, with a primary focus on air quality monitoring. While its main target gas is formaldehyde (HCHO), it is also sensitive to a range of other gases, including volatile organic compounds (VOCs - toulen, alcohol, acetone and hydrogen) and other harmful gases commonly found in the environment. It takes a short time to heat up in order to work correctly.

The breakout board works with both digital (DO) and analog signals (AO). The digital output is obtained by setting a threshold value with a potentiometer. The analog output will differ depending on the intensity of the gas.

Product usage tips:

When gas is detected, the LED will start glowing. It will remain off if it doesn't detect anything. Two mounting holes enable easy mounting to surfaces. The board comes with four male headers that need to be soldered.

  • Voltage: 5V
  • Digital(HIGH/LOW) and analog(0V-5V) output
  • With LM393 comparator
  • Dimensions: 22 x 38 mm / 0.9 x 1.5 inch

Interface

Interface Analog, Digital Gpio
Qwiic Compatible No
Breadboard Compatible Yes

Measurement

Measurement Types Gas

Power

Supply Voltage Min V 5
Supply Voltage Max V 5
Logic Level 5V Only

Other

Ic Part Number MQ138
Start Here
1
Connect

Wire up to your microcontroller via ['analog', 'digital_gpio'].

2
Install the library

Add the Soldered library for your language (below).

3
Run an example

Open the get-started example and read your first value.

MicroPythonPython
What's in the Box
1×
VOC Sensor MQ138 Breakout (main product) 333114
1×
Header pins (unsoldered)
Header pins included for all breadboard-compatible pins
Pinout
Last updated: