read temperature from DHT11, using pi4j

前端 未结 6 2180
甜味超标
甜味超标 2021-02-06 12:55

I\'m trying to read temperature data from a DHT11 temperature sensor, using pi4j. I followed the code written in c and python in this site: http://www.uugear.com/portfolio/dht11

6条回答
  •  甜味超标
    2021-02-06 13:29

    If you're always getting a High State it might be good to double check if the wiring is correct (or if any of the wires are broken, test it with a led).

    I've used adafruit's tutorial in C and python and it worked on my DHT22.

提交回复
热议问题