The CO2 and air quality sensor
This page will demonstrate how to setup the circuit for the Keyes CO2 and air quality sensor and serial print the sensor values.
Last updated
This page will demonstrate how to setup the circuit for the Keyes CO2 and air quality sensor and serial print the sensor values.
Last updated
The aim of this activity is to measure the amount of CO2 in the environment and measure the air quality based on the ambient temperature.
Connect the circuit for the CCS811 sensor.
Write the code (and upload on the Arduino Uno board) to serial print the CO2, ambient temperature and volatile organic compounds.
Arduino Uno Board.
male-to-male jumper cables.
USB power cable for the Uno.
keyestudio CCS811 Carbon Dioxide Temperature Air Quality Sensor
Insert the CO2 sensor of the breadboard.
Connect the GND pin of the sensor to one of the GND pins of the Arduino Uno.
Connect the VCC pin of the sensor to the 5V pin of the Uno.
Connect the SDA pin of the sensor to the Analog pin 4 (A4) of the Uno.
Connect the SCL pin of the sensor to the analog pin 5 (A5) of the Uno.
Connect the WAKE pin of the sensor to the other GND pin of the Uno.
Open your Arduino IDE software and configure the board and the port accordingly.
Download the Adafruit CCS811 library and include it in your Arduino IDE.
Add the following code to your IDE:
Open the serial port. Blow on the sensor and see how the sensor values changes.