I am trying to get readings from a DHT11 sensor (temperature and humidity). I installed the library like so:
git clone https://github.com/adafruit/Adafruit_Python_DHT.git cd Adafruit_Python_DHT sudo apt-get update sudo apt-get install build-essential python-dev python-openssl sudo python setup.py install
Then I tested it out by trying (in python) to
import Adafruit_DHT and this worked.
Then I tried running
t, h = Adafruit_DHT.read_retry(11,3) and it keeps returning None, None. My DHT11 sensor comes on a board with a +, -, and out wires and I have a raspberry pi B+ I put the plus into a power pin (1), the minus into a ground pin (6), and the out wire into a gpio pin (3).
Anyone have any ideas why it is not working?
EDIT: I tried, as per joan's suggestion, used different software and the sensor works however I still have not been able to get any python code to work.