Patch with Adafruit_DHT libray in Python 3.7 with Raspberry pi 4 model b. Adafruit_DHT by default is not supporting Raspberry Pi 4 model b in his installation packages.
To install the solution program into your Raspb Python Library, you have to install first the library for Adafruit_DHT:
sudo apt-get update
sudo apt-get install python3-pip
sudo python3 -m pip install --upgrade pip setuptools wheel
sudo pip3 install Adafruit_DHTSecond step, go to the Python3.7 packages by using the following command:
cd /usr/local/lib/python3.7/dist-packages/Adafruit_DHTFinally, you have to git the python program from this repository:
sudo rm -r platform_detect.py
sudo wget -L https://raw.githubusercontent.com/ferburri/Raspb_4b_Adafruit_DHT/master/platform_detect.pyLast step, check if your python3 file is obtaining the information from the sensors
python3 "example.py"