# Connection of CO2 sensor to Enviro+

**URL:** <https://forums.pimoroni.com/t/connection-of-co2-sensor-to-enviro/24247>\
**Category:** Support\
**Created:** [February 22, 2024, 12:56pm UTC](https://forums.pimoroni.com/t/connection-of-co2-sensor-to-enviro/24247 "2024-02-22T12:56:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredmontet](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/fredmontet/32/10619_2.png) [@fredmontet](https://forums.pimoroni.com/u/fredmontet)\
**Post date:** [February 22, 2024, 12:56pm UTC](https://forums.pimoroni.com/t/connection-of-co2-sensor-to-enviro/24247/1 "2024-02-22T12:56:16Z")

</div>

Hi everyone!

I would like to connect a CO2 sensor to my RPI Zero 2w and Enviro+ but don’t know it is possible. The sensor I am considering is this one : [Adafruit SCD-30 - NDIR CO2 Temperature and Humidity Sensor [STEMMA QT / Qwiic] : ID 4867 : $58.95 : Adafruit Industries, Unique & fun DIY electronics and kits](https://www.adafruit.com/product/4867)

I saw a video where you see this sensor connected to an Enviro+ with a FeatherWing but not to a RPI Zero 2 W ([https://www.youtube.com/watch?v=Szn-ZCr0kYg](https://www.youtube.com/watch?v=Szn-ZCr0kYg))

Given the product page : _Data is read over I2C, so it works very nicely with just about any microcontroller or microcomputer. We’ve written both Arduino and Python/CircuitPython code so you can get started in a jiffy._

Does anyone has a good documentation to follow to make this connection successful?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Shoe](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Shoe](https://forums.pimoroni.com/u/Shoe)\
**Post date:** [February 22, 2024, 8:13pm UTC](https://forums.pimoroni.com/t/connection-of-co2-sensor-to-enviro/24247/2 "2024-02-22T20:13:52Z")

</div>

So as the product page says, it uses I2C which is a very common data bus. It is made of four wires: Ground, Power, Serial Data (often SDA) and Serial Clock (SCL).

Probably the quickest way to do this is to use a [Sparkfun Qwiic shim](https://shop.pimoroni.com/products/sparkfun-qwiic-shim-for-raspberry-pi?variant=31271215464531), which you slip onto the Zero’s GPIO pins underneath the Enviro+. Then you can connect the two using [a Qwiic/Stemma QT cable](https://shop.pimoroni.com/products/jst-sh-cable-qwiic-stemma-qt-compatible?variant=31910609813587).

Alternatively, both the SCD-30 and Enviro+ have pin holes for I2C connectors, so you could wire them to each other directly, but that really depends on how good your soldering is.

A final suggestion: the [SCD-40](https://www.adafruit.com/product/5187) (or the version with the wider sensing range, the SCD-41) is also a very good direct CO2 sensor, its a fair bit smaller, it also works over I2C, and is a little cheaper. It might be worth considering as well.

EDIT: Well it seems that the SCD-40/41 _can_ be cheaper depending on where you buy it. But it’s still just as good and smaller!

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [February 23, 2024, 12:21pm UTC](https://forums.pimoroni.com/t/connection-of-co2-sensor-to-enviro/24247/3 "2024-02-23T12:21:50Z")

</div>

Sensirion provides drivers and instructions on Github: [GitHub - Sensirion/python-i2c-scd30: Python I2C driver for Sensirion SCD30 sensor](https://github.com/Sensirion/python-i2c-scd30) (also available for the SCD-4x).

Besides this, Adafruit provides drivers for their product, usually wrapped CircuitPython drivers in combination with Blinka. Works very well, btw.

I would also suggest the SCD-40. On paper, the SCD-30 has a higher precision, but I doubt that the difference between ± 50ppm and ± 30ppm is really relevant unless you are doing some highly scientific experiments in controlled environments. I have the SCD-40 from M5Stack, which has beside price the advantage that it has a housing and can be connected with a simple Grove-adapter cable (Grove to DuPont or Grove to Stemma/Qt).

---

<div class="post-metadata">

**Author:** ![tyeth](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/tyeth/32/10571_2.png) [@tyeth](https://forums.pimoroni.com/u/tyeth)\
**Post date:** [February 23, 2024, 8:59pm UTC](https://forums.pimoroni.com/t/connection-of-co2-sensor-to-enviro/24247/4 "2024-02-23T20:59:25Z")

</div>

Definitely +1 for the SCD4x series instead, better size age and price. Get the SCD41/42 for a bit more precision / compatibility with air quality standards, but pretty much the same as SCD40.

---

<div class="post-metadata">

**Author:** ![fredmontet](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/fredmontet/32/10619_2.png) [@fredmontet](https://forums.pimoroni.com/u/fredmontet)\
**Post date:** [February 24, 2024, 9:27am UTC](https://forums.pimoroni.com/t/connection-of-co2-sensor-to-enviro/24247/5 "2024-02-24T09:27:02Z")

</div>

Thanks for the input everyone, I’m sure connection will happen flawlessly given your comments! I am getting a **SCD41** soon. Also, apparently **SCD42** is discontinued.

---

<div class="post-metadata">

**Author:** ![m1cr0py7h0n](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/m1cr0py7h0n/32/11507_2.png) [@m1cr0py7h0n](https://forums.pimoroni.com/u/m1cr0py7h0n)\
**Post date:** [May 9, 2025, 5:25am UTC](https://forums.pimoroni.com/t/connection-of-co2-sensor-to-enviro/24247/6 "2025-05-09T05:25:09Z")

</div>

…did this work out finally with SCD41?
