In this recipe, we are going to combine several things we have already seen in this chapter, to create a simple thermostat that is completely based on cloud interactions between two Arduino boards.
This project will be based of two different boards: one will measure the temperature and send events to IFTTT, and the other one will be connected to a relay that will simulate an electrical heater.
Let's first see how to assemble the first board. First, place the DHT11 sensor on the breadboard. Then, connect the first pin of the sensor to VCC on the Arduino board, and the last pin of the sensor to the GND pin of the Arduino board. Finally, connect the second pin of the sensor to Arduino pin 6. This is the final result:
For the relay board, simply connect the VCC pin of the relay to Arduino VCC, GND to GND, and finally the SIG pin of the relay to Arduino pin 6. This is the final result: