ESPHome Adding AHT20 Library

Novice user… I have been tinkering with ESPHome and many of the environmental sensor which are already baked in. I recently purchased an “AHT20” from Adafruit and I get an error…AHT20Error

I attempted to follow the instruction to add the libraries for this sensor…

You don’t need to add the library.

You do need however to use platform: aht10, not platform: aht20

Please also do not post screen shots, copy and past the yaml so that people can check the formatting and indentation. Use preformatted text tags from the toolbar.

sensor:
  - platform: aht10
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 60s

Lastly - I don’t think address: is a supported config variable for this sensor, I think it is always expected on the standard address.

1 Like

Thank you for the help and advice on posting questions!