Good evening, I am starting in the world of the raspberry pi, and after having made small labs with leds, I want to get the temperature and humidity of my room. For this, I have bought in Alliexpress DHT22 sensor.
I have seen and tried many tutorials, but I can't get any values. I always get the error: DHT sensor not found, check wiring.
I am using a raspberry pi 5, and the python library adafruit_dht, as I have seen that some others do not work for the rb pi 5. As I said, I have tried several codes and none of them work. For example this one from
https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/python-setup does not work for me (I can't attach the code because it is too long).
The wiring I think is ok, I attach images. The resistor is 10K and I have also tested the 3.3V and 5V voltages offered by the board, and different GPIOs.
Do you know what I could be doing wrong, maybe the sensor is defective? I hope you can help me! Thank you very much!