CCS811 TVOC Air Quality Gas Sensor

Fr25,000

The CCS811 Air Quality Sensor Breakout Board is a digital gas sensor that senses a wide range of Total Volatile Organic Compounds (TVOCs) along with equivalent carbon dioxide (eCO2) and metal oxide (MOX) levels. The sensor can be used for monitoring Indoor Air Quality. The system can be used with a microcontroller unit (MCU), which includes an Analog-to-Digital converter (ADC) & an I²C interface.

In stock

SKU: SEN32406 Category:

Description

The CCS811 is a digital gas sensor that measures Total Volatile Organic Compounds (TVOC) and eCO₂ (equivalent carbon dioxide) levels in the air. It communicates using the I²C interface and includes an integrated microcontroller that processes sensor data and applies compensation algorithms.

Key Features

  • Integrated MCU
  • Operating Voltage: 1.8V to 3.6V
  • On-board processing
  • A standard I²C digital interface with an I2C Address of 0x5A or 0X5B
  • Optimized low-power modes
  • 2.7mm x 4.0mm x 1.1mm LGA package
  • Low component count
  • Proven technology platform, Compact and economical
  • eCO2 Measurement range: 400 to 8192ppm
  • TVOC Measurement range: 0 to 1187ppb
  • Multiple drive modes for measurements every 1s, 10s, 60s, or every 250ms
  • Arduino and CircuitPython compatibility
  • Integrated 12-bit ADC for sensor readings and digitized conversions
  • Reset / interrupt control

Wiring CCS811 with ESP32 or Arduino

CCS811 Pin ESP32 / Arduino Pin
VIN 3.3V / 5V
GND GND
SDA D21 (ESP32) / A4 (Arduino)
SCL D22 (ESP32) / A5 (Arduino)
WAKE GND (to enable I²C)
INT (Optional – Interrupt pin)
RST (Optional – Reset pin)

Installing the library

  • Go to ,Tools > Manage libraries
  • Type”CCS811″ and install the one by adafruit or download it here

See how to install the library here

Connecting the CCS811 TVOC Air Quality Gas Sensor to the ESP32

 

Connecting the CCS811 TVOC Air Quality Gas Sensor to the Arduino

 

 

 

Example Code (ESP32 / Arduino)

You’ll need the Adafruit CCS811 library. Install it via the Arduino Library Manager.

#include "Adafruit_CCS811.h"

Adafruit_CCS811 ccs;

void setup() {
Serial.begin(115200);

Serial.println(“CCS811 test”);

if(!ccs.begin()){
Serial.println(“Failed to start sensor! Please check your wiring.”);
while(1);
}

// Wait for the sensor to be ready
while(!ccs.available());
}

void loop() {
if(ccs.available()){
if(!ccs.readData()){
Serial.print(“CO2: “);
Serial.print(ccs.geteCO2());
Serial.print(“ppm, TVOC: “);
Serial.println(ccs.getTVOC());
}
else{
Serial.println(“ERROR!”);
while(1);
}
}
delay(500);
}