Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Make Your Own Temperature Sensor and Email Alarm

Make Your Own Temperature Sensor and Email Alarm

The Internet of Things is becoming a more ever-present part of our lives. So, it should come as no surprise that something as crucial as temperature monitoring is a part of that. Follow along with this tutorial to learn how to create your own temperature sensor. More importantly, learn how to set up an email alert system for when things are getting warm.

The connection diagram is shown below. Instead of an ESP8266-01, you can use different type of ESP8266. You can also use a 3.3V power supply instead (AMS1117-3.3) of 2 AA batteries.

Our program is written in the Arduino ESP8266 IDE. See our Arduino ESP8266 IDE tutorial to see how to connect your ESP8266 module to a computer. If you are not experienced, it’s recommended to use an ESP8266 Node MCU board — just connect it to your computer’s USB port.

Download the program from our GitHub. Also download the EIoTCloudRestApiV1.0 library and add it to your library folder in the Arduino IDE. The DallasTemperature lib can be downloaded here.

In the program, you need to change only three lines: set access point name, access point password, and your instance ID. To get the instance ID, you need to register to the EasyIoT Cloud service. The instance ID can be found under Configure->User Info->Instance ID.

To use your temperature sensor you do not need to configure anything — the sensor is plug-and-play. If you want to set a temperature email alarm, configure the following automation program. Go to Configure->Automation and press the Add button.

Configure the following:

Enable the program, then select the program type “Condition.” In the “If” condition, select your newly added sensor module and Sensor.Parameter1. Then, set the condition to “>= rising edge.” Rising edge means that you will be notified only once when temperature raises to a certain value. For the Condition Value, select “Fixed value” and set whatever fixed value you want (in our case fixed value is 27). Then, set the Action “Send email” and set your email address and message. If you want to see the temperature in the message, use {value}. Finally, save the program.

Program configuration

Source: DZone IoT







 

More Articles to Read

An Arduino round word clock
An Arduino round word clock
The Sandwich-o-Matic will make your lunch automatically
The Sandwich-o-Matic will make your lunch automatically
An Arduino-controlled automated whiskey distillery
An Arduino-controlled automated whiskey distillery
The Rex800 looks like a dinosaur Terminator
The Rex800 looks like a dinosaur Terminator
Wrist thrusters let you fly through the water effortlessly
Wrist thrusters let you fly through the water effortlessly
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adding an “extra sense” with rangefinders
Adding an “extra sense” with rangefinders
This wireless game controller looks like a rug
This wireless game controller looks like a rug
How to run your ESP8266 for years on a battery
How to run your ESP8266 for years on a battery
Making beats on a tiny Arduino DJ controller
Making beats on a tiny Arduino DJ controller
This Arduino machine will judge how sick your ollies are
This Arduino machine will judge how sick your ollies are
Turn an old payphone into a boombox for ’90s hits
Turn an old payphone into a boombox for ’90s hits
QuadBot is a 3D-printable walking robot for everyone
QuadBot is a 3D-printable walking robot for everyone
An Arduino tachometer for your older vehicle
An Arduino tachometer for your older vehicle
Harry Potter fans create a fully-functioning smart wand
Harry Potter fans create a fully-functioning smart wand
A 3D-printed lunar phase clock for your nightstand
A 3D-printed lunar phase clock for your nightstand
Create your own Red Dwarf Talkie Toaster replica
Create your own Red Dwarf Talkie Toaster replica
The Orbitalochka is a solar-powered satellite synth
The Orbitalochka is a solar-powered satellite synth
Building a “laser sky” effect generator with Arduino
Building a “laser sky” effect generator with Arduino
Teslapathic! Hackers build a brain-controlled Tesla
Teslapathic! Hackers build a brain-controlled Tesla

Top


Shares