An important pattern of IoT is the ability to sense data and make it available to users in realtime, such as with home monitoring solutions, perimeter security applications, and inventory alerts.
In this chapter, you are going to build an example of this pattern, an intrusion detection system . Figure 5-1 shows components of an intrusion detection system. The first component is an Arduino device that has a motion sensor attached to it. The second component is an MQTT broker. You will use the publish-subscribe model of MQTT for sending intrusion detection notifications ...