- 
                Notifications
    
You must be signed in to change notification settings  - Fork 233
 
DH23 SENSOR
        Thomas E. Horner edited this page Mar 12, 2019 
        ·
        5 revisions
      
    | What | Comments | |
|---|---|---|
| Identifier | DHT23 | ![]()  | 
| Interface | GPIO | 1 pin | 
| Provides | temperature | celsius degrees | 
| humidity | % relative humidity | |
| Properties | none | |
| Datasheet | 
-- Attach DHT23 to GPIO26
s = sensor.attach("DHT23", pio.GPIO26)
while true do
  print("temp: "..s:read("temperature")..", hum: "..s:read("humidity"))
  tmr.delayms(500)
end
