Best Gas and VOC Sensors for ESP32: 9 ENS160, SGP30, MiCS-4514, Electrochemical CO and MQ-Series Picks Compared (Buying Guide)

⚠️ Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through our links, we may earn a small commission at no extra cost to you. Every product below was checked against its live Amazon listing before publishing. Prices change often, so we don’t list them here. Tap any Buy Here button to see the current price on Amazon.
ESP32 Sensor Buying Guide

πŸ§ͺ Best Gas and VOC Sensors for ESP32

Indoor air quality, VOCs, carbon monoxide, smoke and multi-gas detection for ESPHome, Home Assistant and data logging projects. Here are 9 picks, from digital ENS160 and SGP30 breakouts to a calibrated electrochemical CO sensor and classic MQ-series modules.

βœ… 9 Sensors Compared βœ… Verified Amazon ASINs βœ… MOX, MEMS and Electrochemical Explained βœ… Honest Pros & Cons

Gas sensing is one of the most useful things you can add to an ESP32. With Wi-Fi and ESPHome you can log VOC levels from paint, cooking or a 3D printer, switch on an extractor fan when the air turns bad, or send a phone alert when a garage starts to fill with exhaust. The ESP32’s I2C bus, UART ports and ADC cover every sensor type on the market, so the only real question is which sensor matches the gas you care about.

That question matters more than most buyers expect. A cheap MQ module, a digital metal-oxide (MOX) chip and an electrochemical cell all claim to “detect gas”, but they work very differently and give very different quality of data. This guide compares 9 gas and VOC sensors that work with an ESP32 and explains what each one actually measures, how it connects and where it fits. If you need true CO2 readings, see our separate CO2 sensor guide linked at the end, because none of the MOX sensors here measure real CO2.

πŸ’‘ Before you buy: Hobby gas sensors are great for trends, automation and learning, but none of them replace a certified smoke or carbon monoxide alarm. Keep a listed CO alarm in your home and treat your ESP32 build as an extra layer. Also check the voltage: digital I2C boards such as the ENS160 and SGP30 run happily at 3.3V, while most MQ modules need 5V for their heater and their analog output can swing up to 5V, so use a voltage divider before an ESP32 ADC pin.

⚑ Quick Comparison: All 9 Gas and VOC Sensors

SensorMeasuresOutputBest ForBuy
πŸ₯‡ SparkFun ENS160 QwiicTVOC, eCO2, AQII2C (Qwiic) or SPIBest OverallBuy Here β†’
🚨 DFRobot Gravity CO (Calibrated)CO, 0 to 1000 ppmI2C, UART, analogBest for Real CO ppmBuy Here β†’
🌦️ SparkFun ENS160/BME280 ComboTVOC, eCO2, AQI, temp, RH, pressureI2C (Qwiic)Best All-in-OneBuy Here β†’
πŸƒ Adafruit SGP30TVOC, eCO2I2C (STEMMA QT)Best Sensirion VOC BoardBuy Here β†’
🧬 DFRobot Gravity MiCS-4514CO, NO2, NH3, H2, ethanol, CH4I2CBest Multi-GasBuy Here β†’
πŸ’° HiLetgo ENS160+AHT21TVOC, eCO2, AQI, temp, RHI2CBest Budget DigitalBuy Here β†’
🏭 HiLetgo MQ-135Air quality, NH3, smoke, benzeneAnalog + digital thresholdBest Budget Air QualityBuy Here β†’
πŸ”₯ MQ-2 ModuleSmoke, LPG, butane, hydrogenAnalog + digital thresholdBest for Smoke and LPGBuy Here β†’
πŸŽ’ Teyleten MQ Kit (9pcs)MQ-2 to MQ-9 plus MQ-135Analog + digital thresholdBest for LearningBuy Here β†’

Specs come from the manufacturers and the live Amazon listings. Star scores below are our ratings.

πŸ” What Matters in an ESP32 Gas Sensor

πŸ§ͺ

Sensing Technology

MOX chips (ENS160, SGP30, MQ series) react to many gases at once and suit trends. Electrochemical cells target one gas and give calibrated ppm. MEMS boards like the MiCS-4514 sit in between.

🎯

Target Gas

VOCs from cleaning products and printers, CO from combustion, LPG and methane from leaks, NO2 from traffic. Pick the sensor built for your gas instead of a generic “air quality” module.

πŸ”Œ

Interface and Voltage

I2C boards give processed values and share the bus with other sensors. Analog MQ modules need an ADC1 pin, a voltage divider and your own calibration code.

πŸ”₯

Heater Power and Warm-Up

MOX and MQ sensors heat a sensing element. MQ heaters draw far more current than an ESP32 itself and need minutes to stabilise, which rules them out for small batteries.

βš–οΈ

Calibration

Factory calibrated sensors report ppm out of the box. Uncalibrated MQ modules only show relative change until you calibrate them against a known reference.

πŸ† Detailed Reviews: The Top Two

πŸ₯‡ BEST OVERALL GAS AND VOC SENSOR

SparkFun Indoor Air Quality Sensor ENS160 (Qwiic)

⭐ 4.7/5 · Our Rating · ScioSense TrueVOC on Chip
4 MOX
SENSING ELEMENTS
0x53 / 0x52
I2C ADDRESSES
TVOC, eCO2
PLUS AQI OUTPUT
I2C + SPI
QWIIC AND 0.1in PINS
Buy on Amazon β†’
SparkFun Indoor Air Quality Sensor ENS160 Qwiic gas sensor for ESP32

SparkFun’s breakout is built around the ScioSense ENS160, the chip that replaced the popular CCS811. It has four independent heaters and metal-oxide sensing elements, and its on-chip controller does the heavy maths for you: it reports TVOC, eCO2 and a standard Air Quality Index directly, with automatic baseline management and temperature and humidity compensation. SparkFun highlights ozone compensation and good stability as conditions change, and you can still read the raw resistances if you want your own algorithm. On an ESP32 you connect it with a Qwiic cable for 3.3V I2C, or use the 0.1in pins, which also break out SPI. A jumper selects address 0x53 or 0x52, and SparkFun lists MicroPython libraries alongside Arduino support.

βœ… Pros
  • Ready-made TVOC, eCO2 and AQI
  • Four sensing elements
  • Solderless Qwiic wiring
  • I2C or SPI, two addresses
❌ Cons
  • eCO2 is estimated, not true CO2
  • Best results need temp and RH input
  • Few Amazon reviews so far
🎯 Verdict: The best all-round VOC and indoor air quality sensor for ESP32 and ESPHome builds.

πŸ‘‰ Check Price on Amazon β†’

🚨 BEST FOR REAL CO PPM READINGS

DFRobot Gravity Factory Calibrated Electrochemical CO Sensor

⭐ 4.6/5 · Our Rating · Calibrated at the Factory
0 to 1000 ppm
CO RANGE
3.3 to 5.5V
SUPPLY
Under 5mA
WORKING CURRENT
I2C, UART
PLUS ANALOG
Buy on Amazon β†’
DFRobot Gravity factory calibrated electrochemical CO sensor for ESP32

If carbon monoxide is the gas you care about, skip the MQ-7 and use an electrochemical cell. DFRobot’s Gravity CO sensor pairs a probe that is calibrated at the factory with a signal conversion board, so you read CO concentration in ppm across 0 to 1000 ppm without building your own calibration curve. It runs from 3.3 to 5.5V, draws under 5mA (no hot heater like an MQ module), and offers I2C, UART and analog outputs, with the UART at 0 to 3V levels that suit an ESP32. DFRobot rates it for -20 to 50Β°C, 15 to 90% RH and a lifespan of more than two years in air. It is our pick for garage, workshop and boiler room monitors that push alerts through Home Assistant.

βœ… Pros
  • Factory calibrated ppm output
  • Very low power, battery friendly
  • Targets CO specifically
  • I2C, UART or analog
❌ Cons
  • Single gas only
  • Probe has a limited lifespan
  • Not a certified CO alarm
🎯 Verdict: The most trustworthy way to log real carbon monoxide levels with an ESP32.

πŸ‘‰ Check Price on Amazon β†’

πŸ”§ Detailed Reviews: More Gas Sensors

🌦️ BEST ALL-IN-ONE · ⭐ 4.5/5

3. SparkFun Environmental Combo Breakout ENS160/BME280 (Qwiic)

ENS160 TVOC, eCO2, AQI Β· BME280 temperature, humidity, pressure Β· I2C Qwiic Β· 1.0 x 1.0 in
Buy Here β†’
SparkFun Environmental Combo Breakout ENS160 BME280 Qwiic for ESP32

The ENS160 gives its best readings when it knows the temperature and humidity. This SparkFun board solves that by putting a Bosch BME280 right next to it, so one 1 inch square breakout reports TVOC in ppb, eCO2 in ppm and an AQI plus temperature, humidity and barometric pressure. Communication is I2C only, through Qwiic connectors or 0.1in pins, with address jumpers on the back and an onboard 1.8V regulator for the ENS160. For an ESPHome room sensor it is the neatest single-board answer.

βœ… Pros: Six readings from one board; built-in compensation data; solderless Qwiic.
❌ Cons: No SPI; BME280 can read warm if mounted near the ESP32.
🎯 Verdict: The best single breakout for a complete ESP32 indoor environment sensor.
πŸƒ BEST SENSIRION VOC BOARD Β· ⭐ 4.3/5

4. Adafruit SGP30 Air Quality Sensor Breakout (3709)

Sensirion multi-pixel MOX Β· eCO2 400 to 60,000 ppm Β· TVOC 0 to 60,000 ppb Β· I2C STEMMA QT
Buy Here β†’
Adafruit SGP30 VOC and eCO2 air quality gas sensor breakout for ESP32

Adafruit’s SGP30 board uses Sensirion’s multi-pixel MOX sensor, which combines several sensing elements on one chip with a small controller that runs the heater, tracks the baseline and calculates TVOC (0 to 60,000 ppb) and eCO2 (400 to 60,000 ppm). Adafruit quotes a typical accuracy of 15% within measured values and notes that, unlike the CCS811, it does not need I2C clock stretching, which avoids a classic headache on older ESP32 cores. STEMMA QT connectors make it plug and play, and it is supported by Adafruit’s library and ESPHome. The newer ENS160 boards offer more outputs, but the SGP30 remains a well documented, dependable choice.

βœ… Pros: No clock stretching; STEMMA QT; mature libraries and ESPHome support.
❌ Cons: eCO2 derived from H2, not real CO2; baseline needs saving across reboots.
🎯 Verdict: A proven VOC sensor with excellent documentation for ESP32 beginners.
🧬 BEST MULTI-GAS · ⭐ 4.2/5

5. DFRobot Gravity MiCS-4514 MEMS Multi-Gas Sensor

CO, NO2, NH3, H2, ethanol, CH4 Β· I2C Β· 3.3 to 5.5V Β· 0.45W at 5V Β· 27 x 37 mm
Buy Here β†’
DFRobot Gravity MiCS-4514 MEMS multi-gas sensor for ESP32

The MiCS-4514 has two sensing elements, one reducing and one oxidising, and DFRobot’s Gravity board turns them into an I2C sensor with gas conversion formulas built into its library. DFRobot lists ranges of 1 to 1000 ppm for CO, 0.05 to 10 ppm for NO2, 1 to 500 ppm for NH3, 1 to 1000 ppm for H2 and 10 to 500 ppm for ethanol, plus methane above 1000 ppm. It accepts 3.3 to 5.5V, so it runs straight from an ESP32, and is rated for -30 to 85Β°C. Readings are estimates from a MEMS MOX sensor rather than calibrated electrochemical values, but it is the most versatile way to watch traffic pollution, ammonia or alcohol vapour on one board.

βœ… Pros: Six gases on one I2C board; 3.3V compatible; ESP32 named as supported.
❌ Cons: Cross-sensitive between gases; 0.45W heater load; needs warm-up.
🎯 Verdict: The best single board for multi-gas pollution experiments on an ESP32.

βž• Also Worth Considering

πŸ’° BEST BUDGET DIGITAL Β· ⭐ 3.9/5

6. HiLetgo ENS160+AHT21 Air Quality Module

A low-cost board that pairs the same ENS160 MOX sensor as our top pick with an AHT21 temperature and humidity sensor on a shared I2C bus, so you get TVOC, eCO2, AQI and compensation data for a fraction of the cost of a branded breakout. HiLetgo sells it as a CCS811 replacement. There is no Qwiic connector, quality control on these generic boards varies and Amazon reviews are mixed, so test yours on the bench before building it into an enclosure.

Buy Here β†’
🏭 BEST BUDGET AIR QUALITY · ⭐ 3.9/5

7. HiLetgo MQ-135 Air Quality Sensor Module

The classic MQ-135 responds to ammonia, nitrogen oxides, benzene, smoke and other pollutants, and this module adds a comparator with a trim pot for a digital threshold output alongside the analog signal. It is the cheapest way to see when a room’s air gets worse. Power the heater from 5V, scale the analog output down to 3.3V with a divider before an ADC1 pin, and expect relative readings unless you calibrate it yourself.

Buy Here β†’
πŸ”₯ BEST FOR SMOKE AND LPG Β· ⭐ 3.8/5

8. MQ-2 Smoke and Combustible Gas Sensor Module

The MQ-2 is tuned for smoke, LPG, butane and hydrogen, which makes it the usual choice for gas leak and smoke detector experiments near a kitchen, camper stove or workshop heater. Like the MQ-135 it gives an analog output plus an adjustable digital alarm pin, needs a 5V heater supply and a warm-up period, and should feed the ESP32 through a voltage divider. Use it to trigger a fan or notification, never as your only smoke alarm.

Buy Here β†’
πŸŽ’ BEST FOR LEARNING Β· ⭐ 4.0/5

9. Teyleten Robot MQ Series Gas Sensor Kit (9pcs)

Not sure which gas you will end up chasing? This kit includes nine modules: MQ-2, MQ-3, MQ-4, MQ-5, MQ-6, MQ-7, MQ-8, MQ-9 and MQ-135, covering smoke, alcohol, methane, natural gas, LPG, carbon monoxide, hydrogen and general air quality. It is ideal for a classroom or for comparing how each sensor reacts to the same source. All of them share the same 5V heater and analog output caveats as the single modules above.

Buy Here β†’

πŸ“‹ Which Sensor for Which ESP32 Project?

ProjectPickWhy
ESPHome room air quality sensorSparkFun ENS160/BME280 ComboVOC, AQI, temp, humidity and pressure on one Qwiic board
3D printer or soldering fume fan controlSparkFun ENS160 QwiicFast TVOC response to switch a relay or fan
Garage or boiler room CO loggerDFRobot Gravity COCalibrated ppm with very low power draw
Traffic pollution or ammonia studyDFRobot MiCS-4514NO2, NH3 and CO estimates on one board
First VOC tutorial projectAdafruit SGP30Well documented library, no clock stretching
Cheap multi-room VOC nodesHiLetgo ENS160+AHT21Low cost per room with built-in compensation
Camper or kitchen LPG warning lightMQ-2 ModuleSensitive to LPG and smoke, simple threshold pin
Classroom gas sensing labTeyleten MQ KitNine sensor types to compare side by side

πŸ›’ Which Gas Sensor Should You Buy?

🏠

Indoor air quality

The SparkFun ENS160 Qwiic, or the ENS160/BME280 Combo if you also want climate readings.

🚨

Carbon monoxide

The DFRobot Gravity CO sensor for calibrated ppm, alongside a certified CO alarm.

πŸŒ†

Several gases at once

The DFRobot MiCS-4514 for CO, NO2, NH3 and more over I2C.

πŸŽ“

Learning on a budget

The Teyleten MQ Kit or a single MQ-135 to understand how gas sensors behave.

❓ Frequently Asked Questions

Can I connect an MQ sensor directly to an ESP32?

Not safely in most cases. MQ modules are designed for 5V, and their analog output can rise close to 5V, which is above the ESP32’s 3.3V pin limit. Power the module from 5V, then use a simple resistor divider (for example 10k and 20k) on the analog output and connect it to an ADC1 pin such as GPIO 34. The digital threshold pin also needs level shifting if it swings to 5V.

Is eCO2 the same as a real CO2 reading?

No. The ENS160 and SGP30 estimate “equivalent CO2” from VOC and hydrogen levels. In a room full of people the two often move together, but cooking, cleaning sprays or alcohol will push eCO2 up even when real CO2 is normal. For true CO2 you need an NDIR or photoacoustic sensor such as the SCD41 or SenseAir S8.

How long do gas sensors need to warm up?

Digital MOX sensors such as the ENS160 and SGP30 give usable readings within minutes, but their baseline settles over hours to days of continuous operation. MQ sensors need several minutes of heater time before readings stabilise, and a long burn-in when new. Electrochemical cells like the DFRobot CO sensor also need time to settle after power-up, so ignore the first readings after a reboot.

Can I run a gas sensor from a battery with deep sleep?

Heated sensors make this hard. MQ modules draw a lot of current and need long warm-ups, so they are best on USB power. MOX chips can be duty cycled but lose accuracy when power cycled often. The electrochemical CO sensor, at under 5mA, is the best fit for battery logging, though it still needs settling time after waking.

Can an ESP32 gas sensor replace my smoke or CO alarm?

No. These are development sensors without safety certification, and a Wi-Fi project can crash, lose power or drop off the network. Keep certified smoke and CO alarms installed, and use your ESP32 build for logging, early warnings and automations like switching on ventilation.

🏁 Final Verdict: Best Gas and VOC Sensors for ESP32

The right sensor for each job:

πŸ₯‡ Best Overall: SparkFun ENS160 Qwiic
Buy Here β†’
🚨 Best for Real CO ppm: DFRobot Gravity CO
Buy Here β†’
🌦️ Best All-in-One: SparkFun ENS160/BME280 Combo
Buy Here β†’
🧬 Best Multi-Gas: DFRobot Gravity MiCS-4514
Buy Here β†’
πŸŽ’ Best for Learning: Teyleten MQ Kit (9pcs)
Buy Here β†’

For most ESP32 projects, the SparkFun ENS160 Qwiic is the gas sensor to start with: processed TVOC, eCO2 and AQI values over a solderless I2C link. Choose the DFRobot Gravity CO sensor when you need calibrated carbon monoxide readings, the MiCS-4514 for multi-gas pollution work, and an MQ kit when you just want to learn. If you need true CO2 or particulate readings, see our CO2 and air quality sensors guide, pair your gas sensor with compensation data from the temperature and humidity sensors guide, switch an extractor fan with a board from our relay modules guide, and learn the bus basics in our ESP32 I2C tutorial with ESP-IDF.

πŸ’¬ Building a fume extractor controller, a garage CO logger or a pollution station? Tell us about it in the comments below, and we’ll help you pick the right sensor.

All Amazon links above use our affiliate tag (esp32tutorials-20). Purchasing through them supports esp32tutorials.com at no extra cost to you. Prices and availability change frequently, so always confirm the current price on Amazon before buying. The sensors in this guide are not certified safety alarms.

Leave a Comment