This is a basic Raspberry Pi automation tutorial using a relay and a DHT11 temperature sensor. It's geared towards someone who has done a basic sensor or LED tutorial using Python code, and now they're saying "what's next?"
---
Edit: there is an error in the code that was pointed out to me. The time.sleep(1) should be indented one -tab- to the right to be in-line with the code that sets the temperature/humidity and prints it to the screen. The program still works, but without the delay. It needs to be indented to fall within the "while true" loop.
Ещё видео!