Try use DHT22 with Raspberry Pi 3! Tested by Raspbian Stretch (ver. Sep. 2017) and WiringPi v2.44.
- Open the terminal in Raspbian.
- Check your Git installation.
$ sudo apt-get install git-core
- Enter a clone command with this repository address.
$ git clone https://github.com/ccoong7/DHT22.git
- When clone success, change directory to DHT22.
$ cd ~/DHT22
- Compile source code to generate an executable file.
$ gcc -o dht22.out dht22.c -lwiringPi
- Launch!
$ ./dht22.out
Visit my blog and get more information. (in Korean)