SCD4X CO₂, Temperature and Relative Humidity Sensor¶
The scd4x
sensor platform allows you to use your Sensirion SCD4X CO₂
(datasheet) sensors with ESPHome.
The I²C Bus is required to be set up in your configuration for this sensor to work.

# Example configuration entry
sensor:
- platform: scd4x
co2:
name: "Workshop CO2"
temperature:
name: "Workshop Temperature"
humidity:
name: "Workshop Humidity"
Configuration variables:¶
co2 (Optional): The information for the CO₂ sensor.
temperature (Optional): The information for the Temperature sensor.
humidity (Optional): The information for the Humidity sensor.
temperature_offset (Optional, float): The temperature offset can depend on various factors such as the SCD4x measurement mode, self-heating of close components, the ambient temperature and air flow. This variable allows the compensation of those effects by setting a temperature offset. Defaults to
4°C
.automatic_self_calibration (Optional, boolean): Whether to enable automatic self calibration (ASC). Defaults to
true
.ambient_pressure_compensation (Optional, int): Enable compensation of measured CO₂ values based on given ambient pressure in mBar.
altitude_compensation (Optional, int): Enable compensating deviations due to current altitude (in metres). Notice: setting altitude_compensation is ignored if ambient_pressure_compensation is set.
address (Optional, int): Manually specify the I²C address of the sensor. Defaults to
0x62
.update_interval (Optional, Time): The interval to check the sensor. Defaults to
60s
.