O'Reilly logo

Internet of Things with Arduino Cookbook by Marco Schwartz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required