This is a new Code Builder plugin that provides an easy interface with AHT10/AHT15/AHT20/AHT21/AHT25 temperature & humidity sensors.
It's extremely easy to use with only minimal settings, you just need to have one component set as a combined "Temperature & Humidity" and use the hardware I2C pins on your board.
The plugin supports only one AHT sensor and will automatically send the readings to ChipChop so they can be viewed in the app and Dev Console.
The plugin also provides a callback hook that get's triggered every time a reading is taken so you can implement any additional logic in your code.
You can retrieve the readings with the
AHT_Sensor.getTemperature() and
AHT_Sensor.getHumidity() methods at any time from anywhere in your code.