Skip to content
Advertisement

Tag: sensors

unable to set line to input

I am trying to read humidity and temperature values from the AM2301(DHT21). for that I am using the adafruit_dht library which is written for DHT11 & DHT22. because I can’t find any adafruit library for AM2301 so I use this. when I first run the code using some gpio say D17. it works fine and gives the temperature and humidity

Advertisement