CO2 sensor, SCD41
Real CO2 in ppm, with temperature and humidity, over I2C at 0x62: a reading every five seconds.
- 4 pins
- 3 settings
- In 1 project

The CO2 sensor, SCD41 in brief
What it is, and every setting the properties panel gives it.
The SCD41 is Sensirion’s CO2 sensor: real CO2 in ppm, with temperature and humidity, over I2C at 0x62, one reading every five seconds. It is the sensor of classroom air monitors and ventilation alarms. Unlike the eCO2 figure a gas sensor estimates, it counts CO2 by the sound a light pulse makes when it warms the gas. VIN takes 2.4 V to 5.5 V and the board carries the I2C pull-ups. The co2, temperature (-10 to 60 degrees C) and humidity properties are the room, and three sliders change them while the circuit runs. Sensirion’s library is shipped as SensirionI2cScd4x.h. The SCD40 is the same part with a narrower range.
- Family
- Sensors
- Pins
- 4
- co2
- 600
- temperature
- 22
- humidity
- 45
4 pins
Named as the editor names them, so a wire lands where you expect it.
How to read an SCD41 CO2 sensor with an Arduino
Four wires on the Uno’s I2C pins: SDA to A4, SCL to A5, VIN to 5 V and GND to GND. Temperature and humidity come from the SHT40 sensor built into the SCD41, on the same two wires. The SCD41 gives a new reading every five seconds. Fresh outdoor air is about 420 ppm, and a closed room full of people climbs past 1000 ppm, which is the point where a window wants opening.
Drag the CO2 slider on the SCD41 past 1000 ppm and watch the sketch ask for a window. The slider ranges for temperature and humidity change the other two values while the circuit runs. The sketch uses the SensirionI2cScd4x library and Adafruit’s SHT4x library, both of which compile in the browser.
The supply is 2.4 V to 5.5 V, so a 3.3 V board such as an ESP32 or a Pico drives it directly. Use that board’s I2C pins; the address is 0x62.
Common CO2 sensor, SCD41 errors and fixes
Questions and answers
What is the I2C address of the SCD41?
0x62.
How often does the SCD41 measure?
One reading every five seconds.
What CO2 level means open a window?
Fresh outdoor air is about 420 ppm. This project warns past 1000 ppm, which a closed room full of people climbs past.
What is true about the CO2 sensor, SCD41, here
In its help article’s own words: what the simulation gets right, and where it stops.
Not modeled
The photoacoustic measurement's noise, and the effect of altitude, pressure and the temperature offset on the result: a reading is the slider's CO2 plus any forced recalibration's correction.
From SCD41 CO2 sensor, in full.
See the CO2 sensor, SCD41 in a project
One built-in project uses it. It opens in the editor, already wired.
The boards it is shown on
This board has a built-in project with the CO2 sensor, SCD41 in it.
Arduino libraries for the CO2 sensor, SCD41
Built in, so the sketch compiles with nothing to install. Each page has the calls, the wiring and an example to run.
The rest of the bench
Every one of these is drawn and simulated the same way.
Wire up the CO2 sensor, SCD41
Open the editor and push it into the breadboard. It is free, and it runs on your own machine.