NodeMCU Projects: Difference between revisions

Content added Content deleted
Line 124: Line 124:
while True:
while True:
d.measure()
d.measure()
lcd.putstr("Temp is: " + str(d.temperature()) + "'C \nHum is: " + str(d.humidity()) + "%")
lcd.putstr("Temperature: " + str(d.temperature()) + "C")
lcd.putstr("Humidity: " + str(d.humidity()) + "%")
time.sleep(10)
time.sleep(10)
lcd.clear()
lcd.clear()

</syntaxhighlight>
</syntaxhighlight>