Monitoring CO2 Levels with Arduino & Python

Sense up to 100% CO2 levels with this new project tutorial that uses the STC31 Qwiic CO2 Sensor!

A few weeks ago, we released the SparkFun CO2 Sensor - STC31, a Qwiic breakout featuring the STC31 CO2 sensor and the SHTC3 Temperature and Humidity sensor from Sensirion, which accurately measures CO2 concentrations up to 100% with high repeatability and long-term stability, thanks to humidity and temperature compensation provided by the built-in SHTC3.

SparkFun CO2 Sensor - STC31 (Qwiic)

SEN-29260
$124.95

Not only do we have a new video showcasing the new STC31 Qwiic Sensor, but we also have a new project guide! This tutorial covers how to get CO2 and other environmental readings from the STC31 using both Arduino and MicroPython when connecting the CO2 Sensor Breakout to a compatible development board over Qwiic.

New!

Build Your Own High-Concentration CO2 Detector

September 23, 2025
The SparkFun STC31 CO2 Sensor can accurately measure CO2 concentrations up to 100% with high repeatability and long-term stability, thanks to humidity and temperature compensation provided by the built-in SHTC3. This tutorial will show you how!

If you are looking for the full Hookup Guide for the SparkFun CO2 Sensor - STC31, click the button bellow. This basic tutorial only covers the project that get this CO2 sensor up and running as fast as possible thanks to our Qwiic connect system.