Developing the Arduino program

For the IoT node device, we apply Arduino Yún with the DHT22 sensor that provides temperature and humidity sensing. You can find DHT22 easily on an online electronic store or at a local store.

The general  DHT22 sensor scheme is described in the following image. The third pin is unused. This sensor will be attached to Arduino Yún :

Now we can write the Arduino program. You can proceed with the following steps:

  1. To use the DHT sensor with the Arduino board, we use the DHT library from Adafruit. You can find it at https://github.com/adafruit/DHT-sensor-library. You can install it by downloading the DHT source from ...

Get Learning AWS 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.