Connect the AHT20 Sensor

Connect the AHT20 sensor to the Feather. With the Stemma QT cable, plug one end to the I2C port on the Feather (in the middle of the board) and the other to either end to the AHT20 sensor.

Set Up the Feather

The next step is to get your Feather set up in the Adafruit IO WipperSnapper page. Follow the instructions in the Quickstart guide to do this. 

Please make sure you are running WipperSnapper Beta firmware version 16 or newer. I2C sensors will not work in previous versions of the WipperSnapper beta firmware.
  • From the WipperSnapper Device Interface, click "New Component".
  • Select "AHT20".

On the Configure AHT20 modal,

  • After you clicked "New Component", WipperSnapper scanned the ESP32-S2 Feather's I2C bus. The AHT20 sensor's unique address was found at 0x38 (For more information about I2C addressing, check out this guide.)
  • Under the "Send Every" option, select how often you'd like the sensor to be polled for new data, and send it to Adafruit IO.
  • Click "Create Component".

Once the component is created, you should see values populate for the temperature and humidity after the "Send Every" interval has elapsed. You can see the above values change dramatically when I breathe on the sensor.

The temperature is output in degrees Celsius and the humidity is output as relative humidity.

Troubleshooting I2C Sensors in WipperSnapper

  • Make sure the AHT20 is connected to the Feather before trying to add the component or you may see this error.
  • In order to find the correct I2C address, the sensor must be connected to the board at the time of adding the component.

This guide was first published on Dec 10, 2021. It was last updated on Dec 10, 2021.

This page (Feather and AHT20 Set Up) was last updated on Dec 02, 2021.

Text editor powered by tinymce.