Enviro pHAT + DHT11

I’ve just added a DHT11 to my Enviro pHAT setup.
Running all.py, I see “Analog: 0: 4.838”

How do extract temperature (I don’t need the humidity value) from that reading?

Thank you.

I still can’t find any instructions on how to do this. What does 4.838 mean?!

Any help, much appreciated. Ta!

Hi @Richard238 ,

Take a look on the datasheet for the DHT11.

For what I read, you don’t read the analog values from the sensor (hence no need for ADC). In the section 5 you can find a description of protocol to communicate with the DHT11. And that’s something that you will have to implement with your programming language of choice. You can check this library as a guide/help: https://github.com/adafruit/Adafruit_CircuitPython_DHT/blob/master/adafruit_dht.py

Good luck!

The DHT11 is plugged in to the +, -, 0 pins of the analog-in on the Enviro Phat.
What pin do I tell adafruit_dht.py to use?