# CCS811 CO2 Sensor and Micro:Bit

**URL:** https://forum.makecode.com/t/ccs811-co2-sensor-and-micro-bit/24350
**Category:** micro:bit
**Tags:** make
**Created:** [November 18, 2023, 6:57pm UTC](https://forum.makecode.com/t/ccs811-co2-sensor-and-micro-bit/24350 "2023-11-18T18:57:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![danny](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@danny](https://forum.makecode.com/u/danny)
#### Post date: [November 18, 2023, 6:57pm UTC](https://forum.makecode.com/t/ccs811-co2-sensor-and-micro-bit/24350/1 "2023-11-18T18:57:26Z")

</div>

Hello! For educational purposes I am trying to connect the CCS811 digital gas sensor to a Micro:Bit(V2).  
I understand it uses I2C protocol and I (think) I know how to connect the hardware to eachother (Using pins SDA, SCL, GND an VCC). For my (young) students I am trying to write the programme in blocks, rahter than Python. But frankly, I do not find the missing piece and I feel as if i tried everything. Is there anyone who knows how to get the Co2values , measured by the CCS811, to come up on the Micro:BIT display? Thank you!!

---

<div class="post-metadata">

### Author: ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)
#### Post date: [November 20, 2023, 6:45pm UTC](https://forum.makecode.com/t/ccs811-co2-sensor-and-micro-bit/24350/2 "2023-11-20T18:45:53Z")

</div>

> [@danny](#):
>
> CCS811

Hi

You will need to add some sort extension to Makecode

Have you seen …

> **[GitHub - ADataDate/pxt-airQuality: Makecode Package for the CCS811 Air...](https://github.com/ADataDate/pxt-airQuality)**
>
> Makecode Package for the CCS811 Air Quality Sensor - GitHub - ADataDate/pxt-airQuality: Makecode Package for the CCS811 Air Quality Sensor

> **[GitHub - ElectronicCats/pxt-airQuality: Maker Code Package for the CCS811 Air...](https://github.com/ElectronicCats/pxt-airQuality)**
>
> Maker Code Package for the CCS811 Air Quality Sensor - GitHub - ElectronicCats/pxt-airQuality: Maker Code Package for the CCS811 Air Quality Sensor

Maybe one of these may be usable?

Unfortunately i don’t have an CCS811 to test it with

---

<div class="post-metadata">

### Author: ![MKleinSB](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mkleinsb/32/593_2.png) [@MKleinSB](https://forum.makecode.com/u/MKleinSB)
#### Post date: [November 20, 2023, 9:23pm UTC](https://forum.makecode.com/t/ccs811-co2-sensor-and-micro-bit/24350/3 "2023-11-20T21:23:51Z")

</div>

Hi danny,  
you can try this Extension

> **[GitHub - MartijnScale/pxt-ccs811: extension for the cc811 sensor to work on a...](https://github.com/MartijnScale/pxt-ccs811)**
>
> extension for the cc811 sensor to work on a micro:bit - GitHub - MartijnScale/pxt-ccs811: extension for the cc811 sensor to work on a micro:bit

Greetings

Michael
