Smart cloud thermostat

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.

Getting ready

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

Get Internet of Things with Arduino 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.