DHT22 output is random weird characters

I am fairly new to the Arduino and DHT22 stuff. I was using a DHT11 but I upgraded to a DHT22, the DHT11 was also doing the exact same thing. The output for the DHT22 is weird random characters.

positive connected to 5v
out connected to 2
negative connected to GND

Where is and what is the value of your pull-up resistor ?

Pictures of your sketch doesn’t cut it !

Make these match.

I dont have a resistor. My DHT22 has 3 pins instead of 4 and im not sure if I still need it. Im new to all of this. I did at one point have my DHT11 working very well and it didnt have a resistor.

Add a 4k7 or 10k pull-up resistor to the output of the DHT22

Thank you so much. It works now.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.