In this tutorial, we will learn how you can send text message to any registered mobile number. As we know, the ESP-01 is a powerful programmable WiFi module and even a microcontroller. This means we will directly program the ESP-01 module using Arduino IDE. Here, I am using IFTTT to complete my tutorial.
With IFTTT, we can make Facebook updates and send emails, WhatsApp messages, texts to any registered mobile number and many more. So, here we will use the messaging service to complete our task.
First go to: https://ifttt.com and login with your IFTTT account details. If you don’t have one, then sign up.
Configure Webhooks for IFTTT. Go to: https://ifttt.com/maker_webhooks
To configure maker Webhooks, simply click on “CONNECT” button and you're all set.
Configure mobile number to IFTTT.com. Go to: https://ifttt.com/sms
To register your mobile number, follow the instructions on the page. For instance, you will need to enter your number in a specific format. So I have entered my mobile number as “0091123456789”demo number. Where “00” is the number as directed by IFTTT and “91” is my country code, then followed by my demo number, as shown in the image below.
This step is to create new applet. So go to My Applets and click on New Applet. It will give you the page shown below, and you can then set the services.
Now for "THIS" search Webhooks and give a triggering EVENT NAME with variable names for sensor values. I have given ESP_DHT11 and click on "Create Trigger" as shown below.
Now for "THAT," search SMS. Then click on "Send me SMS." You will find the below image where you need to setup the event name and variables for the sensor values. Then click "Create action" to finish.