The DHT11 temperature sensor is a low-cost, inexpensive, and widely available sensor for measuring temperature and humidity. Using a breadboard, wire up the DHT11 with the LoPy/LoPy 4, as shown in the following diagram:
We will need to start a new project in Atom for our code. Create a new folder on your computer and give it a descriptive name. I've chosen to call my folder Edge Code. From the Atom Welcome Guide screen, click on Open a Project and then the Open a Project button and open the folder you just created.
boot.py() is run whenever the LoPy/LoPy 4 is run. We will require one for our project ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.