DHT11

Raspberry Pi 2 model B / DHT11 Temperature and Humidity Module

More than 1 year has passed since last update.

REF:http://osoyoo.com/ja/2017/07/06/dht11/

Connection:

DHT11 Broadcom Name
GND GND
DATA GPIO14(UART TXD)
VCC +3V
sample
wget http://osoyoo.com/driver/pi3_start_learning_kit_lesson_17/dht11.py
vi dht11.py
sudo python ./dht11.py
result
humidity: 68 %,  Temperature: 27 C
bits: [0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0], length: 40
[68, 0, 27, 1, 96]
humidity: 68 %,  Temperature: 27 C
Data not good, skip
bits: [0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0], length: 40
[68, 0, 27, 3, 98]
humidity: 68 %,  Temperature: 27 C