Skip to content

DHT11 SENSOR

Jaume Olivé Petrus edited this page Feb 18, 2017 · 38 revisions

Specification

What Comments
Identifier DHT11
Interface GPIO 1 pin
Provides temperature celsius degrees
humidity % relative humidity
Properties none
[Datasheet] (http://www.micropik.com/PDF/dht11.pdf)

Code

s1 = sensor.attach("DHT11", pio.GPIO4)

s1:read("temperature")
s1:read("humidity")
Clone this wiki locally