{"id":3774,"date":"2025-06-16T14:51:59","date_gmt":"2025-06-16T14:51:59","guid":{"rendered":"https:\/\/iotthinghub.com\/?p=3774"},"modified":"2025-06-16T15:30:02","modified_gmt":"2025-06-16T15:30:02","slug":"iot-whatsapp-notification-method-1-whatabot","status":"publish","type":"post","link":"https:\/\/iotthinghub.com\/?p=3774","title":{"rendered":"IoT: Whatsapp Notification Method 1: WhatABoT"},"content":{"rendered":"\n<p class=\"has-text-color has-link-color wp-elements-1 wp-block-paragraph\" style=\"color:#5c5c5c\">In our daily life we have either whatsapp or telegram or messenger etc for communicating platform. You can use any of those to communicate media with your ESP module. In this article we use whatsapp to display DHT11 sensor data. For security reason we introduce a KEY word. Let\u2019s begin with ESP01 module since it has low cost with 2 GPIO. First look at the connection diagram-<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"892\" height=\"477\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/Connection-Whatsapp.jpg\" alt=\"\" class=\"wp-image-3779\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/Connection-Whatsapp.jpg 892w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/Connection-Whatsapp-300x160.jpg 300w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/Connection-Whatsapp-768x411.jpg 768w\" sizes=\"(max-width: 892px) 100vw, 892px\" \/><\/figure>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-2 wp-block-paragraph\" style=\"color:#5c5c5c\">First go to the following website &amp; follow the process. &#8211; > <a href=\"https:\/\/whatabot.io\/get-started\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/whatabot.io\/get-started<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/WhatABoT-Image-1024x341.jpg\" alt=\"\" class=\"wp-image-3786\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/WhatABoT-Image-1024x341.jpg 1024w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/WhatABoT-Image-300x100.jpg 300w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/WhatABoT-Image-768x256.jpg 768w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/WhatABoT-Image-1536x511.jpg 1536w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/WhatABoT-Image.jpg 1551w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul style=\"color:#252525;font-size:19px\" class=\"wp-block-list has-text-color has-link-color wp-elements-3\">\n<li>send a WhatsApp message with the following text: &#8220;I allow whatabot to send me messages&#8221;<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-left has-text-color has-link-color wp-elements-4 wp-block-paragraph\" style=\"color:#252525\">For full procedure please watch my YouTube Video or simply go to the following site-         <a href=\"https:\/\/github.com\/WhatabotAPI\/WhatsappArduino\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/WhatabotAPI\/WhatsappArduino<\/a><\/p>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-5 wp-block-paragraph\" style=\"color:#252525\">Now it times to download some driver for our project. Let\u2019s begin with some settings-&nbsp;<\/p>\n\n\n\n<ul style=\"color:#252525\" class=\"wp-block-list has-text-color has-link-color wp-elements-6\">\n<li>Install the latest version of Arduino : <a href=\"https:\/\/www.arduino.cc\/en\/software\/\">https:\/\/www.arduino.cc\/en\/software\/<\/a><\/li>\n\n\n\n<li>In Arduino: File>Preferences>Setting<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"http:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json<\/a><\/p>\n\n\n\n<ul style=\"color:#252525\" class=\"wp-block-list has-text-color has-link-color wp-elements-7\">\n<li>In Arduino Install: Tools>Board>esp8266<\/li>\n\n\n\n<li>In Arduino: Tools>Board>esp8266>Generic ESP8266 Module<\/li>\n\n\n\n<li>In Arduino Install: Library Manager\n<ul class=\"wp-block-list\">\n<li>WiFiManager<ul><li>DHT sensor library<\/li><\/ul>\n<ul class=\"wp-block-list\">\n<li>ArduinoJson<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-8 wp-block-paragraph\" style=\"color:#252525\">One Additional but important library \u2013<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/WhatabotAPI\/WhatabotAPIClient\/releases\/tag\/1.0\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/WhatabotAPI\/WhatabotAPIClient\/releases\/tag\/1.0<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-9 wp-block-paragraph\" style=\"color:#5c5c5c\">The main program as follow-<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: arduino; auto-links: false; title: ; quick-code: false; notranslate\" title=\"\">\n#include &lt;WhatabotAPIClient.h&gt;\n#include &lt;WiFiManager.h&gt;\n#include &lt;DHT.h&gt;\n\n#define WHATABOT_API_KEY &quot;Your_API_Key&quot;     \/\/ Your WhataBoT API Key\n#define WHATABOT_CHAT_ID &quot;8801XXXXXXXXX&quot;    \/\/ Your Phone Number Without+\n#define WHATABOT_PLATFORM &quot;whatsapp&quot;        \/\/ Fixed String\n\nWiFiManager wifiManager;\nWhatabotAPIClient whatabotClient(WHATABOT_API_KEY, WHATABOT_CHAT_ID, WHATABOT_PLATFORM);\n\n\/\/If you dont want to use WiFiManager you can still connect to WiFi using other logic.\n#define AP_SSID &quot;Your_WiFi_Name&quot;            \/\/ Your WiFi Name\n#define AP_PASS &quot;Your_WiFi_passord&quot;         \/\/ Your WiFi Password\n\n#define DHTPIN 2     \/\/ GPIO2 of ESP01\n#define DHTTYPE DHT11\nDHT dht(DHTPIN, DHTTYPE);\n\nvoid setup() {\n  dht.begin();\n  Serial.begin(115200);\n  \/\/wifiManager.autoConnect(AP_SSID, AP_PASS); \/\/ You Can Use This function\n  WiFi.begin(AP_SSID, AP_PASS);\n  Serial.print(&quot;Connecting to WiFi&quot;);\n  while (WiFi.status() != WL_CONNECTED) {\n    delay(500);\n    Serial.print(&quot;.&quot;);\n  }\n  whatabotClient.begin();\n  whatabotClient.onMessageReceived(onMessageReceived); \n  whatabotClient.onServerResponseReceived(onServerResponseReceived);\n}\n\nvoid loop() {\n  whatabotClient.loop(); \n}\n\nvoid onServerResponseReceived(String message) {\n  Serial.println(message); \n}\n\nvoid onMessageReceived(String message) {\n  Serial.println(message);\n  float humidity = dht.readHumidity();\n  float temperature = dht.readTemperature();\n  int IsDisplay = message.compareTo(&quot;display&quot;);   \/\/ You Can Change Your Key\n  if(IsDisplay==0) whatabotClient.sendMessageWS(&quot;\ud83c\udf21 Temp: &quot; + String(temperature, 2) + &quot;\u00b0C\\n\ud83d\udca7 Humidity: &quot; + String(humidity, 2)+&quot;%&quot;);\n  else whatabotClient.sendMessageWS(&quot;Sorry Wrong Key&quot;);\n}\n<\/pre><\/div>\n\n\n<p class=\"has-text-color has-link-color wp-elements-10 wp-block-paragraph\" style=\"color:#5c5c5c\">Here you have to enter your full SIM number without + sign. Since I live in Bangladesh so I use 880 as my country code, India 91, Pakistan 92, Nepal 977 , Sri Lanka 94, USA 1 , UAE 971 etc. Remember WhatABoT phone number +5491132704925 need to save with + sign, otherwise BOT will not active. Run the program &amp; have fun.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"ESP01(8 pin Smart MCU):  \u2706 Whatsapp Notification Method 1: WhatABoT + \ud83d\udcf1 Key Display\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/l4bxoSbDE4s?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7387b849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-buttons alignwide is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-3e41869c wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/WhatsappDisplayDHT11.rar\" style=\"padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--50)\" target=\"_blank\" rel=\"noreferrer noopener\">download<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-color has-link-color has-medium-font-size wp-elements-11 wp-block-paragraph\" style=\"color:#252525\"><a href=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2025\/06\/WhatsappDisplayDHT11.rar\" target=\"_blank\" rel=\"noreferrer noopener\">WhatsappDisplayDHT11.rar<\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our daily life we have either whatsapp or telegram or messenger etc for communicating platform. You can use any of those to communicate media with your ESP module. In this article we use whatsapp to display DHT11 sensor data. For security reason we introduce a KEY word. Let\u2019s begin with ESP01 module since it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-3774","post","type-post","status-publish","format-standard","hentry","category-esp01esp8266"],"_links":{"self":[{"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/posts\/3774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3774"}],"version-history":[{"count":21,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/posts\/3774\/revisions"}],"predecessor-version":[{"id":3805,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/posts\/3774\/revisions\/3805"}],"wp:attachment":[{"href":"https:\/\/iotthinghub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}