DHT12 Temperature+Humidity Sensor
The dht12 Temperature+Humidity sensor allows you to use your DHT12
(datasheet,
electrodragon_) I²C-based sensor with ESPHome. This sensor is also called AM2320 by some sellers.


# Example configuration entry
sensor:
  - platform: dht12
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 60sConfiguration variables
temperature (Required): The information for the temperature sensor.
- All options from Sensor.
 
humidity (Required): The information for the humidity sensor
- All options from Sensor.
 
update_interval (Optional, Time): The interval to check the sensor. Defaults to
60s.