At the end of this chapter, we implemented an alarm system using Android Things SDK. Moreover, you now know how to use a two-state sensor using GPIO pins. In the last part of the chapter, you learned how to integrate the Android Things app with Google Cloud services such as Firebase to send notifications.
You can use this knowledge to develop this project, adding new features such as more PIR sensors to monitor several rooms at the same time. Moreover, you can use a Firebase real- time database to log the time when the sensor detects movements.
In the next chapter, we will learn how to use more complex sensors that measure physical properties. We will experiment how to use I2C sensors and how we can integrate them with the Android Things app.