Creating the edge device files

Let's begin:

  1. 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:

  1. 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.
  2. boot.py() is run whenever the LoPy/LoPy 4 is run. We will require one for our project ...

Get Hands-On Edge Analytics with Azure IoT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.