DHT11 Sensor how to get work with WEBIOPI

575 views
Skip to first unread message

Horst Lichter

unread,
Apr 11, 2016, 8:26:54 PM4/11/16
to WebIOPi
Hi,

i cannot get the DHT11 Sensor running in my WEBIOPI-Script
Are there any instructions for DHT 11?

I tried to get it work with Adafruit library, HowTo: https://www.devin.cl/blog/dht11-webiopi/

If i execute a simple script like this it works:

import Adafruit_DHT

SENSOR = Adafruit_DHT.DHT11
PIN = 7

humidity, temperature = Adafruit_DHT.read_retry(SENSOR, PIN)

print (temp)


however if i simply try to get the following line in my WEBIOPI-Script:

import Adafruit_DHT


i get an error:

Import Error: no module named Adafruit_DHT


Can somebody help me or has already got the DHT11 to work with webiopi?

Thanks

Russell Turner

unread,
Apr 14, 2016, 12:39:46 PM4/14/16
to WebIOPi
Their is a lengthy post on here regarding the DHT22/DHT11. Try the link below Toshi has a great tutorial on it there.

https://groups.google.com/forum/#!msg/webiopi/tm5b-67IwfQ/1a2Zt1Eq2R0J
Reply all
Reply to author
Forward
0 new messages