- The Monkey
- Posts: 25
- Joined: Sun Mar 26, 2017 9:55 pm
- Contact: Website
Temperature Not Reading
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
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.
http://abyz.co.uk/rpi/pigpio/examples.html#pdif2_DHTXXD will work if the DHT22 isn't bust and if it's connected properly.
- The Monkey
- Posts: 25
- Joined: Sun Mar 26, 2017 9:55 pm
- Contact: Website
Re: Temperature Not Reading
Breadboard. Photo: http://imgur.com/6RP7311. But on a pi 3joan 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.
Re: Temperature Not Reading
If you want help you need to provide a photo.
- The Monkey
- Posts: 25
- Joined: Sun Mar 26, 2017 9:55 pm
- Contact: Website
Re: Temperature Not Reading
Did the link not work?joan wrote:If you want help you need to provide a photo.
- DougieLawson
- Posts: 40523
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: Temperature Not Reading
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.
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.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
- The Monkey
- Posts: 25
- Joined: Sun Mar 26, 2017 9:55 pm
- Contact: Website
Re: Temperature Not Reading
Ok. I'll get an actual photoDougieLawson 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.