Getting Fire Alert Message on Telegram:
The IR flame sensor is used to detect the presence of fire or other infrared source (Flame or a light source of a wavelength in the range of 760 nm to 1100 nm can be detected).
So, let's begin with the connections.
IR flame sensor has four pin A0, D0, vcc and GND. Here in our case we will just use 3 pins D0, VCC and GND. A0 pin will be left as it is.
Now, connect VCC pin to 5v pin, GND to GND pin and D0 will be connected to GPIO 27 of your ESP32 Board.
Follow the Schematics below:
Setting up telegram bot:
Log in to your telegram app and follow the steps;
1. Search "@BotFather" it is an official telegram bot creator.
Getting your chat Id:
Search "@myidbot" and follow as shown in picture below:
Here is the demonstration of it working:
Comments