Components / Sensors / SCD40 CO2 sensor

SCD40 CO2 sensor

True CO2 sensor that uses sound and light (photoacoustic), in a small package.

MeasuresCO2, temperature, humidity
Range400 to 2000 ppm specified
Accuracy±(50 ppm + 5 %)
InterfaceI2C
SensorsReviewedMPN SCD40-D-R2Used in 6 projects
SCD40
In short

What is the SCD40 CO2 sensor and what is it used for?

True CO2 sensor that uses sound and light (photoacoustic), in a small package. Makers use it for classroom CO2 monitors.

How it works

A photoacoustic sensor: CO2 absorbs pulses of infrared light, and the tiny pressure wave this makes is measured by a microphone.

Key specifications

Sensor specValue
MeasuresCO2, temperature, humidity
Range400 to 2000 ppm specified
Accuracy±(50 ppm + 5 %)
InterfaceI2C
I2C address0x62
Supply voltage2.4 to 5.5 V

Pinout

VDD2.4 to 5.5 V
GNDGround
SCLI2C clock
SDAI2C data

How to use it

Use the Sensirion SCD4x library at address 0x62 and start periodic measurement; it gives a reading every 5 seconds. Automatic self-calibration assumes it sees fresh outdoor air (about 420 ppm) for some time each week; in a closed room, calibrate manually or turn it off.

Applications

Alternatives

Buy at

Common questions

What is the SCD40 CO2 sensor used for?

In maker projects: classroom CO2 monitors.

How does the SCD40 CO2 sensor work?

A photoacoustic sensor: CO2 absorbs pulses of infrared light, and the tiny pressure wave this makes is measured by a microphone.

What voltage does the SCD40 CO2 sensor need?

2.4 to 5.5 V.

How do I connect the SCD40 CO2 sensor to an Arduino or ESP32?

I2C. Pins: VDD (2.4 to 5.5 V), GND (Ground), SCL (I2C clock), SDA (I2C data).

What can I use instead of the SCD40 CO2 sensor?

MH-Z19B CO2 sensor and SCD30 CO2 sensor.