We're about to explore a simple application based around the DHT 11/DHT 22 circuits and code we first saw in Chapter 9, Measuring Temperature, Humidity, and Light Levels. You can find this code in the chapter13/ifttt_dht_trigger_email.py file.
This code will monitor the temperature using a DHT 11 or DHT 22 sensor, and if a pre-configured high or low threshold is breached, the code will invoke your IFTTT Webhook URL, which will then send you an email, similar to the one shown in the following screenshot. This corresponds to the email subject and body text you configured in the previous section, in step 13:
Figure 13.15 – Example IFTTT emailÂ
Before we can run our sample application code, there are a few configuration steps we need to perform. Let's take a look:
- Open the chapter13/ifttt_dht_trigger_email.py file for editing.
- Locate the following segment of code indicated by lines (1) and (2). Confirm that...