In this chapter, we learned how to build an orientation sensor using tilt switches from scratch and saw how to improve it step by step. We discussed how to hide the complexity of our project by building a cube around it to make it presentable.
In the next chapter, we will build upon this by adding MQTT into the mix. The cube will be enhanced to broadcast the associated activity along with the stopped time, for example, Watching TV: 123 minutes.
We will also have a look at how to make use of MQTT clients for Android and iOS to display the data published by the cube.