Tested on:RPi3; Raspbian Stretch; Python3
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)
Hardware:DHT22/AM2302
4.7k Ohm resistor
0

Update: DHT22 (AM2302) with PiGPIO for Raspbian Stretch

Since Raspbian Jessie was upgraded to Stretch, there are some problems with the Adafruit driver for the humidity and temperature sensor DHT22/AM2302. Luckily, the PiGPIO library supports the DHT22 for Raspbian Stretch.

Assembly
See tutorial Adafruit driver for DHT22.

Installation
Execute the following steps in the terminal:

Measure data
Now, humidity and temperature are measured by entering

Links
Tutorial PiGPIO: http://www.knight-of-pi.org/pigpio-for-sudo-less-gpio-before-raspbian-jessie/
Adafruit driver for DHT22: http://www.knight-of-pi.org/measure-temperature-and-humidity-with-the-sensor-dht22-am2302/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.

Comment

Time limit is exhausted. Please reload CAPTCHA.