Connecting the project to the cloud
Now, we want to connect the data to the cloud so that we can monitor the project remotely. Once we are able to do this, we can check whether our plants need watering and initiate the watering process, even if we're not home.
To do this, we will first connect to Dweet.io to store our data.
We already saw how to use Dweet.io in Chapter 6, Internet of Things with Intel Galileo. Dweet.io is, as they claimed, the "Twitter for social machines". It publishes and subscribes data to your computer or any electronic device that connects to it, and it's fast and easy to use. No need for sign ups!
What we need to do now is code the Arduino sketch. Here is the complete code for this part:
// Libraries #include <Sensirion.h> #include <SPI.h> #include <Ethernet.h> // MAC address byte mac[] = { 0x98, 0x4F, 0xEE, 0x01, 0x90, 0xC5 }; // Ethernet client EthernetClient...