April 2017
Intermediate to advanced
268 pages
5h 36m
English
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.
You will need the following hardware components:
The DHT11 pin configuration is shown in the following figure: