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.
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.
Text editor powered by tinymce.