There was an error while loading. Please reload this page.
-- 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
Back to sensor list