Table of Contents

lamaPLC: CJMCU-811 CCS811 Gas Sensor (VOCs TVOC CO2)

CJMCU-811 CCS811 Gas Sensor (VOCs TVOC CO2) The CJMCU-811 is a small, ultra-low-power digital gas sensor module designed to monitor indoor air quality. It is built around the CCS811 sensor from AMS, which uses a metal oxide (MOX) multi-gas sensor to detect a broad range of Volatile Organic Compounds (VOCs).

Key Capabilities

The sensor measures atmospheric conditions and outputs digitized values via an I²C interface:

Technical Specifications

FeatureDetails
Operating Voltage1.8V to 3.3V DC (Note: Some modules include a regulator for 5V compatibility)
Power Consumption~30mA average; extremely low power in idle modes (< 6µW)
InterfaceI2C (standard address is often 0x5A or 0x5B)
DimensionsRoughly 15mm x 21mm
EnvironmentOperating temperature from -40°C to 125°C

Usage Considerations

Pin Descriptions

The CJMCU-811 (featuring the CCS811 sensor) is typically an 8-pin breakout board. For basic operation, you must connect VCC, GND, SDA, SCL, and WAKE.

Pin NameFunction
VCCPower Supply1.8V to 3.6V (Some boards include a 5V regulator).
GNDGroundCommon ground for power and logic.
SCLI²C ClockSerial clock line for communication.
SDAI²C DataSerial data line for communication.
WAKEWake (Active Low)Crucial: Must be pulled to GND to enable I²C communication.
INTInterrupt (Active Low)Optional; indicates when new data is ready, or thresholds are crossed.
RSTReset (Active Low)Optional; pulling this low resets the sensor.
ADDRI²C Address SelectConnect to GND for 0x5A (default) or VCC for 0x5B.

Connection Tips

Arduino example code

To use the CJMCU-811 with an Arduino, the most common approach is to use the Adafruit CCS811 Library.

Arduino Wiring

Connect your CJMCU-811 breakout to the Arduino as follows:

This basic sketch initializes the sensor and prints eCO2 and TVOC levels to the Serial Monitor.

#include "Adafruit_CCS811.h"
 
Adafruit_CCS811 ccs;
 
void setup() {
  Serial.begin(115200); // Set Serial Monitor to 115200 baud
  Serial.println("CCS811 test");
 
  // Initialize the sensor
  if(!ccs.begin()){
    Serial.println("Failed to start sensor! Check wiring and WAKE pin.");
    while(1);
  }
 
  // Wait for the sensor to be ready
  while(!ccs.available());
}
 
void loop() {
  if(ccs.available()){
    // readData returns false if there is no error
    if(!ccs.readData()){
      Serial.print("CO2: ");
      Serial.print(ccs.geteCO2());
      Serial.print("ppm, TVOC: ");
      Serial.print(ccs.getTVOC());
      Serial.println("ppb");
    } else {
      Serial.println("ERROR reading sensor!");
      while(1);
    }
  }
  delay(1000); // Wait 1 second between readings
}

Common Troubleshooting

I²C topics on lamaPLC

PageDateTags
2026/04/23 21:51, , , , , , ,
2025/09/23 21:25, , , , , ,
2026/03/22 03:14, , , , , , ,
2026/04/23 21:52, , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/03/28 23:50, , , , , , ,
2026/04/12 00:34, , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , ,
2026/03/22 00:08, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2025/05/31 23:32, , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2025/11/22 00:07, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2023/07/01 17:29, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2026/03/22 01:44, , , , , , , , ,
2026/04/23 21:52, , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , , , ,
2026/04/23 21:51, , , ,
2026/04/23 21:52, , , , , , , , , , , , , , , , , , , , , , , , ,
2026/04/11 19:54, , , , , , , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/02/14 18:27, , , , , , , , , ,
2026/04/23 21:52, , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/04/15 19:41, , , , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2026/02/14 23:47, , , ,
2026/02/14 23:51, , , , , ,
2026/02/14 18:26, , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/03/05 21:19, , , , , , , , , , , , , , , , ,
2026/02/14 18:27, , , , , , ,

This page has been accessed for: Today: 2, Until now: 4