AHT20 / BMP280 Modul Arduino code
This compact module combines an AHT20 air temperature and humidity sensor with a BMP280 air pressure sensor to provide a comprehensive view of the air conditions in your environment. The AHT20 and BMP280 are widely used and popular due to their accuracy and small size. Communication is easily handled via the I²C interface with a microcontroller of your choice, thanks to the operating voltage of 2-5V.
For some reason, the Adafruit BMP280 library doesn't work reliably. It eventually freezes so severely that it only functions when the Arduino is powered off. I tried different parameter settings, but it didn't make a difference. It seems that the BMx280MI library written by Gregor Christandl works better.
Required libraries (found in the Arduino IDE):
BMx280MI by Gregor Christandl (1.2.3 or higher)
Adafruit AHTX0 by Adafruit (2.0.5 or higher)
More info: https://lamaplc.com/doku.php?id=sensor:aht20_bmp280