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:
(Adafruit)
# Example configuration entry
sensor:
- platform: htu21d
model: htu21d
temperature:
name: "Temperature"
humidity:
name: "Humidity"
heater:
name: "Heater"
Configuration variables:¶
temperature (Optional): The information for the temperature sensor. All options from Sensor.
humidity (Optional): The information for the humidity sensor. All options from Sensor.
heater (Optional): The information for the heater sensor. All options from Sensor.
update_interval (Optional, Time): The interval to check the sensor. Defaults to
60s
.model (Optional): Possible values are HTU21D, SI7021, SHT21. Defaults to HTU21D.
The heater may be enabled to help correct the reading; see the datasheet for more information.