The Internet of Things is making the world around us more smarter and more responsive, merging the digital and physical universes. Here I'm building an IoT device to measure the temperature by using a sensor and when the temperature crosses the threshold value, an SMS will be received indicating the current temperature value to the user.
Sensors are devices that detect and respond to changes in an environment. Here input to the sensor comes from the temperature.Sensors output valuable information since it is connected to a network, the value produced by the sensors are checked with minimum and maximum value set in the code, if the it above or below the threshold immediately an SMS will flash on the mobile screen.
This project can be implemented in industries for monitoring process where specific temperature is to be maintained. If any change in the temperature is detected, then immediate information is sent to the user which helps in faster resolution of the problem and avoid the extent of damage.
HARDWARE SETUP
Step 1: Connect the sensor to the bolt Wi-Fi module using female to male jumper wires.
There are 3 pins on the LM35 sensor they are VCC, Output and Gnd.Hold the sensor in such a manner that you can read LM35 written on it. Connect the VCC pin(leftmost) to the 5V of the Bolt Wi-Fi module.Output pin (middle pin) to the A0 and the GND pin (rightmost) to the GND of the Bolt Wi-Fi module.
Connect the Bolt Wi-Fi module to power on using an android USB cable
Step 2: Create an account in 'Twilio' which is a third-party SMS functionality provider.
Steps to create account :
- Enter the details in 'sign up' form and also select SMS as the product, Account Notification and Python as the programming language.
- Enter phone number for verification.
- Click on products -> select 'Programmable SM'S and 'Phone Numbers'-> continue.
- Enter the project name -> continue.
- click on the 'project info' or the dashboard to view the Account SID and Auth Token.
Step 3: Install any of the Linux distribution using a virtual machine on your system. (you can also create an account on the Digital Ocean). Here I have used Kali Linux for doing this project.
Installation steps:
- Download VmWare.
- Install VmWare.
- Download Kali Linux Server image.
- Install Kali Linux Server image on VmWare.
The programming language used is python, install python3 on your system through the terminal, Then install the boltiot python library.
Step 3: Log on to the Bolt Cloud and fetch the API key and device ID.
The coding is done in two files.One will store all the credentials related to Twilio and the other to store the main code to collect the data from the Bolt and send SMS if it crosses the threshold, run this file to get the output.
When we run the file the sensor value was above the threshold and then immediately a message flashed on the screen.
Here is a video demonstration of the temperature monitoring system.
Comments