Send Text Messages Using ESP8266-01 with DHT11 Sensor Data

Introduction

SMS (Short Message Service) is a text messaging service that allows users to send and receive short, text-based messages on their mobile phones or other devices. SMS has been around for many years and is still an important means of communication for many people.

Overall, SMS remains an important tool for communication and is likely to continue to be widely used in the future.

In this tutorial, we will learn how you can send a 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, and texts to any registered mobile number, and many more. So, here we will use the messaging service to complete our task.

Hardware Requirement

Disclaimer: It may contains Amazon affiliate links. which means I can get a small commission on the sale. This might be your indirect help to me. Thank You πŸ™
  • ESP8266-01 (HERE)
  • DHT11 sensor (HERE)
  • Small breadboard (HERE)
  • Connecting wires (HERE)
  • USB to TTL Serial cable (HERE)

Software Requirement

  • Arduino IDE (You can download it from HERE)

Circuit Diagram

Circuit Setup

Connect the components as per the circuit diagram. Remember if you have ready made modules of each component just follow the basic connection. And if you have base components then follow the above circuit diagram and connect carefully.

How to configure IFTTT

Please follow the step-by-step process to configure IFTTT. After following the below steps you can test the project.

STEP 1: Create and account

Go to the official website of IFTTT by clicking on the link https://ifttt.com and sign in with your IFTTT account details. If you don’t have one, then sign up. Follow the simple steps to sign up and create a new account for the project.

STEP 2: Configure the Webhook

Click the link and go directly to the webhook section https://ifttt.com/maker_webhooks

To configure maker Webhooks, simply click on the “CONNECT” button and you’re all set.

STEP 3: Configure Mobile Number

To configure mobile number in which you want to receive sensor data update. Click the link https://ifttt.com/sms and redirect to the configuration page or you can search it in the IFTTT website.

Now 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.

STEP 4: Create new applet

This step is to create a 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.

STEP 5: Set up THIS

Now click on “THIS” and search Webhooks then give a triggering EVENT NAME with variable names for sensor values. I have given ESP_DHT11 and clicked on “Create Trigger” as shown below.

STEP 6: Set up THAT


Now click on “THAT” and search SMS. Then click on “Send me an SMS.” You will find the below image where you need to set up the event name and variables for the sensor values. Then click “Create action” to finish.

Download Source Code

Download the complete source code: click here

Leave a Comment