I bought the explorer phat to connect analog sensors to my pizero. This works perfect!
I also want to connect a (digital) temperature and humidity sensor (DHT22, a AM2302 th be exact). I already connect it directly to the pi using this schematics. With the software from adafruit, I can read out the sensors values without a problem.
However, with the explorerhat, I cannot set it up directly on the pins. So I connected the wires to 5v, ground and input1. The sensor can handle the 5v according to the datasheet.
Now here’s my problem: With the functions from explorerhat I just get a "high state"on input one (explorerhat.input.one.read()=1). But I want the temperature and humditiy values. In the documentation for the explorer hat (the phat is never mentioned, I assume it works for both?), I read that input 1 is connected to GPIO 23. So It thought I can just read it out with the adafruit software, but this: _sudo python AdafruitDHT.py 2302 23 gets me always a “Failed to get reading. Try again!”.
Can anyone help me get the readings from the digital sensor DHT22 with the explorer phat?
Thank you in adavance and please excuse my writing as I’m not a native speaker.