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

Benzene, Toluene, Acetone, Formaldehyde Sensor MQ138 Breakout With Qwiic

Qwiic Ecosystem Qwiic Sensors
Sensors & Modules Environmental (Temp, Humidity, Gas)
Interface ['i2c'] Qwiic Yes
Monitor indoor air quality with the MQ138 sensor, detecting harmful VOCs like formaldehyde and benzene through a user-friendly Qwiic interface.

Protect your place from dangerous organic compounds with the MQ138 formaldehyde sensor. Formaldehyde, benzene, toluene, and acetone are invisible health hazards commonly found in new furniture, building materials, paints, and cleaning products - but now you can detect them before they become a problem. Perfect for indoor air quality monitoring, smart home safety systems, and industrial hygiene applications, this intelligent sensor features an onboard microcontroller for accurate, calibrated readings through the convenient Qwiic interface.

Engineered with an integrated microcontroller, this sensor delivers pre-calibrated readings through the Qwiic interface, eliminating analog signal processing and calibration requirements. Please note that you will have to use our Arduino library for the project to ensure correct communication with the onboard microcontroller. Don't worry, using our documentation, you should find it easy to get started. The digital output provides reliable, consistent measurements while the Qwiic system enables tool-free connection to all Soldered development boards and others which support the Qwiic/STEMMA-QT interface. The 3.3V operation with onboard regulation ensures compatibility with modern microcontroller systems, while four mounting holes enable secure installation in monitoring applications.

This sensor is ideal for detecting formaldehyde levels in new homes, furniture, and workplace safety monitoring. The LED indicator provides immediate visual feedback when harmful VOC levels are detected. Allow an initial heat-up period (48 hours first run and then each consecutive run 5 mins heat up time) for optimal accuracy. The sensor provides relative concentration readings perfect for trend monitoring and threshold detection. Ideal for triggering ventilation systems or safety alerts. Four mounting holes enable permanent installation in HVAC systems, indoor air quality monitors, or portable testing devices. Compatible with Arduino, Raspberry Pi, and ESP32 through the Qwiic interface. Includes documentation and example code for immediate implementation in air quality monitoring projects. Custom selectable I2C address via onboard switch ensures compatibility with existing projects.

  • Detects: VOC (toulene, acetone, alcohol, hydrogen)
  • Voltage: 3V3
  • Output: digital
  • ATTiny404 microcontroller onboard
  • qwiic connectors
  • Dimensions: 54 x 22 mm / 2.1 x 0.9 inch

Interface

Interface I2C
Qwiic Compatible yes
I2C Address Default 0x30
I2C Address Changeable yes
Breadboard Compatible yes

Measurement

Measurement Types Gas

Power

Supply Voltage Min V 3.3
Supply Voltage Max V 3.3
Logic Level 3v3_only

Other

Ic Part Number MQ138
Mcu Part Number ATTINY404
Start Here
1
Connect

Plug into any Soldered Dasduino or microcontroller with an easyC cable — no soldering required.

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.

What's in the Box
Benzene, Toluene, Acetone, Formaldehyde Sensor MQ138 Breakout With Qwiic (main product) 333128
Header pins (unsoldered)
Header pins included for all breadboard-compatible pins
Pinout
Last updated:
Technical Resources 2 resources
Documentation 1 resource