This Code uses the standard gpiod-library to read data from DHT11-sensor on a RaspberryPi5.
It is largely based on the
Adafruit DHT-library. Yet for now it only supports reading temperature in degrees celcius and humidity in percent.
Adafruit published their library under MIT License.
This adaption is licensed GPLv3.