Practical – Creating a Telegram household motion detector
In this practical, we will look into creating a Telegram bot that can pass us information regarding motion that has been detected based on a motion detector. This is a great practical to understand how to work with different APIs and how they can interoperate with one another to ensure that we can create an autonomous workload based on different components. These components are what make up the concept of smart homes and large IoT ecosystems that have them interacting with one another, and you can see these components in the Technical requirements section.
Creating a chatbot
To receive messages sent from the ESP32 based on the motion caught by the motion sensor, we have to first create a chatbot on the Telegram app:
- To start off, we need to download the Telegram app. We can go to Google Play or the App Store and download and install Telegram from there:
Figure 8.3 –...