First, we built the hardware for this project: basically two sensors and a relay that were connected to the Galileo board. Then, we saw what the MQTT protocol is, and how we can easily integrate it into our project using PubNub.
After that, we wrote the code for our project and tested it with the PubNub console. We also covered how to display all the measurements inside a web dashboard. Finally, we saw how to control the relay in real time from anywhere in the world.
There are many ways to improve on this project. You can, for example, integrate more sensors on your Galileo board and display their measurements in real time on the dashboard you created at Freeboard.io. You can also code your own dashboard, for example, integrating an on/off button to control the relay remotely.
We are finally at the end of this book. I hope that you enjoyed reading it as much as I enjoyed the writing process! It is now time for you to take what you learned in this book and start building your own projects...