I already had tested an DHT11 module with the ESP8266. Now i also tested the DHT11 temperature / humidity sensor on the 37in1 module KY015 with ESP8266Basic
Hardware connections
- GNDmiddle VCC 3V3
S Signal line - ESP8266 Pin 5
Program
' TestKY015.basPinDHT11 = 5
DHT.SETUP( 11 , PinDHT11 )
cls
print "<br>Pin : " & PinDHT11 & "<br>Time : " & time() & "<br>Temperature : " & DHT.TEMP() & "<br>Humidity :" & DHT.HUM()
end
No comments:
Post a Comment