Adafruit Email & Text Alerts

July 17, 2021 by Matt Jackson, Product Support Specialist @ Fathym

Once you have your Adafruit Device data flowing to the cloud, it's time to setup alerts and notifications so that you can easily monitor everything. I prefer using Microsoft Logic Apps for sending email and text alerts when temperatures rise above a specified threshold. But first things first, let's get our Adafruit Device connected to Microsoft Azure.

Adafruit Logo

Adafruit Device has a great guide located here that shows how to connect your Adafruit Device to an Azure IoT Hub. It's a great source and very informative. However, instead of going through all of the tedious steps outlined in the tutorial of setting up an Azure resource group, the IoT Hub, storage containers, the storage endpoints, and everything else, I prefer to use Fathym's IoT Ensemble. With one click I can register my Adafruit Device and immediately get access to the data for downstream use in alerts, dashboards, visualizations, and machine learning. After I enroll my device in IoT Ensemble, it displays the IoT Hub connectionstring. I take the connectionstring into the config to use as my Azure Key and I'm ready to rock. Here's a screenshot of my connected Adafruit Device.

IoT Ensemble List Device

The Adafruit data is immediately flowing to IoT Ensemble and I can view the data on screen. Reminder that behind the scenes in IoT Ensemble the Adafruit data is stored in Microsoft Azure in blob storage, as well as in CosmosDB.

How to access data in Microsoft Azure

Behind the scenes in IoT Ensemble the Adafruit data is stored in Microsoft Azure in blob storage, as well as in CosmosDB. Read this to learn more about accessing your data

Fathym's IoT Ensemble is providing an easy-to-use UI for interacting with the data instead of using the Azure portal - and it saves me a ton of time and money.

Fathym IoT Ensemble

Adafruit Email & Text Alerts in Logic Apps

Now that my Adafruit data is flowing to IoT Ensemble, it's time to setup the email alerts using Logic Apps. This IoT Ensemble doc explains how to use Logic Apps to call the IoT Ensemble warm query every 12 hours and check if the Temperature of any of the results is greater than 45. If so, it sends an email alert. Here's a screenshot.

Email Alert Logic Apps

Sign up for IoT Ensemble and save your company thousands of dollars in Azure setup and management costs. Enroll your first Adafruit Device with IoT Ensemble for free. No credit card required. No Azure account required. It really is that simple.

info

Enroll your first Adafruit Device with IoT Ensemble for free.
No credit card required.
No Azure account required.