Defining rules with IFTTT
IFTTT is an online rule engine for any type of application, including IoT projects. We basically define a trigger (if this) and an action (then that). In this example, we will create a webhook on IFTTT, where our ESP32 device publishes temperature readings, and the IFTTT service will record the incoming readings on a Google spreadsheet. As hardware, we simply connect a DHT11 sensor to GPIO17 of the ESP32 devkit. Let's start by defining a rule on IFTTT first.
Preparing the rule
There are several tasks that we need to do at this stage. Here are the steps:
- Create a Google account if you don't have one and navigate to Google Drive at https://drive.google.com.
- Create a new folder named
ifttt
on Google Drive and a spreadsheet in it,temperature_log
. - Go to https://ifttt.com and log in. Then, navigate to https://ifttt.com/create to create a new applet. An applet is the IFTTT term for a rule. In the free plan, we can create up to three...