INTRODUCTION
PART 2:CONFIGURING DEVICE ON BOLT CLOUD
PART 3: DATA COLLECTION
PART 4:CODING FOR ALERT MESSAGE
PART 5:CODE FOR ANALYZING DATA AND SENDING MESSAGE
PART 6:OUTPUT
Read moreThis project is a temperature monitoring system. It stores the data recorded by the LM35 temperature sensor and creates a regression polynomial graph for it. Then, depending on the boundary conditions set, an alert message is sent via e-mail and SMS to the user if these limits are breached. A Z-score analysis and prediction of future temperature is also done to detect any anomaly.
PART 1: CONNECTIONS- Hold the sensor such that one can read "LM35" written on it. The pins are VCC, output, GND from left to right respectively.
- VCC pin is connected to 5V of the Bolt WiFi Module; Output pin to A0 of the Bolt WiFi Module; GND pin to the GND pin of the Bolt WiFi Module.
- The circuit will look as follows:
Circuit Representation
- Create a product on the Bolt Cloud, to monitor the data from the LM35, and link it to your Bolt.
Temperature Sensor product created under the name CAPSTONE_PRO
- Configure the hardware settings as follows:
A0 pin selected and given the name temp
- Write the product code, required to run the polynomial regression algorithm on the data sent by the Bolt.
Code to create regression graph created in javascript and stored under the name temp_monitor
- Save this setup and link it to the Bolt WiFi Module
Product linked to device
- Keep this temperature monitoring circuit inside the refrigerator, and let the system record the temperature readings for a minimum of 2 hours.
Circuit is kept in the fridge. A power bank acts as the required power supply.
- Using the VMware Workstation 12 player, open Ubuntu
Open ubuntu
- Login and type the program required for the credentials of SMS and email details
Code for credentials
- Using the reading that has been received in the 2 hours, set boundaries for the temperature within the fridge with the help of a python code.
Python code to set boundary limits.
- Write a python code which will fetch the temperature data, every 10 seconds, and send out an email alert, if the temperature goes beyond the specified temperature thresholds.
Python code to store data and send alert message.
- Modify the above python code, to do a Z-score analysis and print an error message when an anomaly is detected. The error message being used here is:"Someone has opened the fridge door".
Python code for Z-SCORE ANALYSIS
- Tune the Z-score analysis code, such that, it detects an anomaly when someone opens the door of the fridge.
Python code to send error message.
Output of Python code.
Polynomial Regression Graph without prediction.
Polynomial Regression graph with prediction
Alert message sent when temperature drops below or rises above the boundary conditions.








Comments