SCD40 CO2 sensor
True CO2 sensor that uses sound and light (photoacoustic), in a small package.
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.
A photoacoustic sensor: CO2 absorbs pulses of infrared light, and the tiny pressure wave this makes is measured by a microphone.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | CO2, temperature, humidity |
| Range | 400 to 2000 ppm specified |
| Accuracy | ±(50 ppm + 5 %) |
| Interface | I2C |
| I2C address | 0x62 |
| Supply voltage | 2.4 to 5.5 V |
Pinout
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
Builds that use it
Alternatives
- MH-Z19B CO2 sensorCheaper NDIR sensor on UART
- SCD30 CO2 sensorWider range, larger NDIR sensor
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.
