Triggers & Notifications

Fire Sensor Alert Block

Send an SMS if temperature reaches a threshold.
Back to BLOCKS

About Fire Sensor Alert Block

This block monitors JSON values coming in from a temperature sensor and sends an SMS notification if temperature reading crosses a threshold indicating fire.

Try it Now
Categories:
Triggers & Notifications Triggers & Notifications
External APIs
External APIs
Internet of Things
Internet of Things
Triggers & Notifications
Triggers & Notifications
Last Updated:
20160801 at 16:59:21
Author:
Devendra

Walkthrough

Fire sensor alert BLOCK makes use of two event handlers. The first event handler monitors incoming messages from temperature sensors and generates an alert when temperature is beyond 420 degrees (indicating fire).

This alert is fed into another event handler along with contact information of person to be notified. This event handler uses the information to compose and send an SMS to the contact using RingCentral's API. Visit https://developer.ringcentral.com to get your credentials for RingCentral API.

This block can be extended to other scenarios as well, to monitor for readings from sensors going outside predefined range.

As extension, more alerting handlers can be added to send emails or other types of notifications.

Input

Sensor readings in JSON format are sent to input channel: fire-sensor-alert-channel
{
    "temp": 451,
    "device_id": "com.pubnub.sensor25"
}