This Arduino library provides support for the 7Semi CO₂, Temperature & Humidity I2C Sensor Probe — a reliable, compact, and low-power environmental sensor for embedded and IoT systems. It communicates over I²C and outputs real-time measurements of carbon dioxide (CO₂ in ppm), temperature (°C), and relative humidity (%RH).
- Supports I²C communication at standard 100kHz
- CO₂ measurement in parts per million (ppm)
- Temperature measurement in degrees Celsius (°C)
- Humidity measurement in %RH
- Works with 3.3V.
- Lightweight and optimized for AVR, STM32, ESP32/ESP8266, and RP2040
- 7Semi CO₂ Temperature & Humidity I2C Probe
- Arduino-compatible development board
- I²C connections: SDA, SCL
- Power supply: 3.3V
- Open the Arduino IDE
- Navigate to:
Sketch > Include Library > Manage Libraries…(IDE 1.x), or- Use the Library Manager sidebar in IDE 2.x
- Search for:
7Semi_CO2_Temperature_Humidity_I2C_Probe_Arduino_Library - Click Install
Alternatively, clone or download this repository and place it in your libraries/ folder.
| CO2TH Sensor | Arduino Board |
|---|---|
| SDA | A4 (UNO) / D21 (ESP32) |
| SCL | A5 (UNO) / D22 (ESP32) |
| VCC | 3.3V |
| GND | GND |
CO2: 415 ppm Temperature: 25.37 °C Humidity: 45.63 %RH
CO2: 417 ppm Temperature: 25.42 °C Humidity: 45.59 %RH