# Sugar Carbon Dioxide Sensor Module

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fa5JHUBawrKGxdAv1EVEF%2Fco2_transparent.png?alt=media&#x26;token=52bf5bc1-741a-4bb9-b43d-e1df78b82eba" alt=""><figcaption></figcaption></figure>

This Carbon Dioxide Sensor can detect CO2 and TVOC in the air.

### Product Specifications

* Size: 24 x 24 x 23 mm

### Wiring

#### Robotbit Edu

Connect the Module to the I2C port of Robotbit EDU.

![](https://686851495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Bv9xBdKh3R9w6Vp7asd%2Fuploads%2FSB7FWn6KauxiIncfzvml%2Fco2_wiring_edu.png?alt=media\&token=978f6b15-b73d-4d37-adb2-bf67baa54a7e)

#### Robotbit 2.2

Connect the module to the I2C Port of the Robotbit.

<figure><img src="https://686851495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Bv9xBdKh3R9w6Vp7asd%2Fuploads%2FJjiaSC5yJOMK2DMig2vx%2Fco2_wiring_2.2.png?alt=media&#x26;token=fe06a41e-1ba0-4fc5-bc03-bd7c714709ec" alt=""><figcaption></figcaption></figure>

### Programming Tutorial

#### MakeCode Programming Tutorial

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/mcbanner.png)

#### Import Sugar Extension

#### Search for sugar in the search bar (Kittenbot products has been verified by Microsoft)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/sugar_search.png)

[Importing Extensions Tutorial](https://sharinghub-eng.kittenbot.hk/programming-platforms/makecode-tutorial/kittenbot-and-makecode)

#### Extension URL

Sugar extension: <https://github.com/KittenBot/pxt-sugar>

### Sample Program

{% embed url="<https://makecode.microbit.org/_HAU0AiEy7R9j>" %}

[Sample Program](https://makecode.microbit.org/_HAU0AiEy7R9j)
