M2M alarm system

In the previous chapters, we looked at the different ways of achieving M2M communication between two ESP8266 boards. In this recipe, we will look at how to implement M2M communication in an IoT project. To do that, we will create a simple M2M alarm system with one ESP8266 board connected to a DHT11 sensor and the other connected to a buzzer. The alarm will be triggered when the temperature reading drops below 20 degrees Celsius.

Getting ready

You will need the following hardware components:

The DHT11 pin configuration is shown in the following figure:

  1. First, mount the ESP8266 board and the DHT11 ...

Get ESP8266 Internet of Things Cookbook 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.