Took me quite some time to figure out how to get rid of this error, because the Python script for the DHT11 temperature sensor does not get executed. The error message seems to be quite strange because libgpiod is found when executing "pip3 freeze".
The reason for this failure is that libgpiod Python 3 does not work without the installation of libgpiod-dev.
It has to be installed with :
> apt install libgpiod2 libgpiod-dev