HTU21D | Si7021 | SHT21 Temperature & Humidity Sensor

The HTU21D Temperature & Humidity component allows you to use HTU21D, Si7021 and SHT21 sensors with ESPHome. The I²C Bus is required to be set up in your configuration for this sensor to work.

Example sensors:

../../_images/htu21d-full.jpg

HTU21D Temperature & Humidity Sensor.

../../_images/temperature-humidity.png
# Example configuration entry
sensor:
  - platform: htu21d
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 60s

Configuration variables:

  • temperature (Required): The information for the temperature sensor.

    • name (Required, string): The name for the temperature sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • humidity (Required): The information for the humidity sensor.

    • name (Required, string): The name for the humidity sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • update_interval (Optional, Time): The interval to check the sensor. Defaults to 60s.

See Also