First time post, first time Pi user. I want to connect up a DHT22 to my new Pi 4 B. I am a complete novice.
I saw a page https://pimylifeup.com/raspberry-pi-hum ... sor-dht22/, that talks about it, but my DHT22 has three pins not four, so I initially connected it up with no breadboard, just the Pi. I then ran some Python on the Pi but just get back "none", "none" as responses.
DHT_SENSOR = Adafruit_DHT.DHT22
DHT_PIN = 7
hum, temp = Adafruit_DHT.read_retry(DHT_SENSOR,DHT_PIN)
print ("Humidity is", hum)
print ("Temperature is", temp)
So I then connected it all up to a breadboard, and put a 10k ohm resister between DAT and VCC.
I still don't get anything back other than "none".
I don't think my code is wrong, but have a connected something wrong? I have some photos here.
Also, generally questions, but should I be turning the Pi off everytime I connect/disconnect something, or is that being too cautious?