Page 1 of 1

Temperature Not Reading

Posted: Mon Apr 10, 2017 3:04 pm
by The Monkey
So I got a temperature sensor that is a DHT22 and I am using https://github.com/adafruit/Adafruit_Python_DHT for the reading. This is the code I use https://github.com/adafruit/Adafruit_Py ... ruitDHT.py. I run it in the terminal starting with cd Adafruit_Python_DHT/ then cd example/ python AdafruitDHT.py 22 17 because that is where it is but every time it says to retry. I have triple checked everything. Anybody know how to fix this?

Re: Temperature Not Reading

Posted: Mon Apr 10, 2017 3:11 pm
by joan
How have you connected the DHT22 to the Pi?

http://abyz.co.uk/rpi/pigpio/examples.html#pdif2_DHTXXD will work if the DHT22 isn't bust and if it's connected properly.

Re: Temperature Not Reading

Posted: Mon Apr 10, 2017 5:04 pm
by The Monkey
joan wrote:How have you connected the DHT22 to the Pi?

http://abyz.co.uk/rpi/pigpio/examples.html#pdif2_DHTXXD will work if the DHT22 isn't bust and if it's connected properly.
Breadboard. Photo: http://imgur.com/6RP7311. But on a pi 3

Re: Temperature Not Reading

Posted: Mon Apr 10, 2017 5:18 pm
by joan
If you want help you need to provide a photo.

Re: Temperature Not Reading

Posted: Mon Apr 10, 2017 5:45 pm
by The Monkey
joan wrote:If you want help you need to provide a photo.
Did the link not work?

Re: Temperature Not Reading

Posted: Mon Apr 10, 2017 6:27 pm
by DougieLawson
I think Joan wants a real-world photo of your physical wiring, not a picture of your theoretical wiring done with Fritzing.

Most of us know the theory of how these things need to be wired, if we're going to help we need to know whether theory matches reality.

Re: Temperature Not Reading

Posted: Wed Apr 12, 2017 2:22 pm
by The Monkey
DougieLawson wrote:I think Joan wants a real-world photo of your physical wiring, not a picture of your theoretical wiring done with Fritzing.

Most of us know the theory of how these things need to be wired, if we're going to help we need to know whether theory matches reality.
Ok. I'll get an actual photo