

Look for the DHT sensor library by Adafruit.Īdd your WiFi credentials, telegram bot token, and chat ID to the code in the mentioned places before uploading.Ĭhoose the current board & port and upload the code. To install the library navigate to the Sketch > Include Library > Manage LibrariesĢ. This library is so good that it runs on both Arduino and ESP architecture.ġ. Thank Allah, we don’t have to worry much about this because we are going to use the DHT library from Adafruit which makes things very easy. DHT Sensor LibraryĬommunicating with DHT11, DHT22/AM2302 sensors is difficult. Go to Sketch > Include Library > Manage Libraries.Ĥ. Follow the next steps to install the library.ġ. We also have to install the ArduinoJson library. The library is installed.įor details about the library, you can check out the Universal Arduino Telegram Bot Library GitHub page. Go to Sketch > Include Library > Add.ZIP Library.ģ.

Click this link to download the Universal Arduino Telegram Bot library.Ģ.

To establish communication with the Telegram bot, we’ll be using the Universal Telegram Bot Library created by Brian Lough that provides an easy interface for Telegram Bot API.įollow the next steps to install the latest release of the library.ġ. We need to install the below 3 libraries in Arduino IDE for reading data from DHTxx module and for communicating with the telegram bot.
