I want to use the DHT11 sensor with my Raspberry PI 2 Model B.
I'm using pin#01 for the VCC, pin#39 for GND, but I don't know which pin should I use for DATA? Should I enable some GPIO ports to use them? I get only 0x0 data (I tried pin#37).
I want to use the DHT11 sensor with my Raspberry PI 2 Model B.
I'm using pin#01 for the VCC, pin#39 for GND, but I don't know which pin should I use for DATA? Should I enable some GPIO ports to use them? I get only 0x0 data (I tried pin#37).
Use any GPIO you want.
I have some example software at http://abyz.me.uk/rpi/pigpio/examples.html#pdif2_DHTXXD to read the DHT series of temperature and humidity sensors. It should auto detect the sensor type. It requires my pigpio library.
Connect Pi 3V3 to sensor +, Pi ground to sensor ground, and any GPIO to sensor data. You ALSO need to connect a 4k7 (or thereabouts) resistor between the data line and 3V3. The sensor will not work otherwise.