IoT: Whatsapp Notification Method 1: WhatABoT

                      http://arduino.esp8266.com/stable/package_esp8266com_index.json

#include <WhatabotAPIClient.h>
#include <WiFiManager.h>
#include <DHT.h>

#define WHATABOT_API_KEY "Your_API_Key"     // Your WhataBoT API Key
#define WHATABOT_CHAT_ID "8801XXXXXXXXX"    // Your Phone Number Without+
#define WHATABOT_PLATFORM "whatsapp"        // Fixed String

WiFiManager wifiManager;
WhatabotAPIClient whatabotClient(WHATABOT_API_KEY, WHATABOT_CHAT_ID, WHATABOT_PLATFORM);

//If you dont want to use WiFiManager you can still connect to WiFi using other logic.
#define AP_SSID "Your_WiFi_Name"            // Your WiFi Name
#define AP_PASS "Your_WiFi_passord"         // Your WiFi Password

#define DHTPIN 2     // GPIO2 of ESP01
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);

void setup() {
  dht.begin();
  Serial.begin(115200);
  //wifiManager.autoConnect(AP_SSID, AP_PASS); // You Can Use This function
  WiFi.begin(AP_SSID, AP_PASS);
  Serial.print("Connecting to WiFi");
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  whatabotClient.begin();
  whatabotClient.onMessageReceived(onMessageReceived); 
  whatabotClient.onServerResponseReceived(onServerResponseReceived);
}

void loop() {
  whatabotClient.loop(); 
}

void onServerResponseReceived(String message) {
  Serial.println(message); 
}

void onMessageReceived(String message) {
  Serial.println(message);
  float humidity = dht.readHumidity();
  float temperature = dht.readTemperature();
  int IsDisplay = message.compareTo("display");   // You Can Change Your Key
  if(IsDisplay==0) whatabotClient.sendMessageWS("🌡 Temp: " + String(temperature, 2) + "°C\n💧 Humidity: " + String(humidity, 2)+"%");
  else whatabotClient.sendMessageWS("Sorry Wrong Key");
}