DHT Sensor RPi Python 3 in 73 seconds

preview_player
Показать описание
Get this working fast. Code is dead simple, right here:

import Adafruit_DHT as DHT

humid, temp = DHT.read_retry(DHT.DHT11, 4)

print(temp, humid)
Рекомендации по теме
Комментарии
Автор

Absolutely perfect, exactly what I was looking for! Thank you!

iywsywnhdi
Автор

very nice i was trying to use the nodecmu to read from its own sensors but its telling me to make all thee accounts and run wifi just want the reading from connected sensors on the oled

jeffcarpenter