The video completely explain the functioning as well as the output of the project.
1) First of all make the correct hardware connections.
Make sure that when we hold the temperature sensor in a way that the LM35 written on it is visible then the the sequence of pin is VCC, output and Gnd from left to right
VCC pin plugged in 5v point of wifi module
output pin plugged in 'A0' point of wifi module
Gnd pin plugged in 'gnd' point of wifi module
2) Created the product on BOLT CLOUD with the name "Predictor" and configure the product
3)During configuring we write this code for taking polynomial regression in action an then we linked the device.
4) After about 2 Hours we get the graph which has three drawn line it.
The Blue line shows us the Actual value sensed by sensor
The red line shows the predict history.
The orange line shows us the predicted temperature for the next slot of times.
(In this case we set the predicted count to 5)
5)Now we put the setup in the fridge for reading the sensor value and to check whether we are getting alert when the system crosses thresholds values.
6)Now we open the puTTy app to sign in our Digital ocean server by username "root"
7) After logging in we type the code for the credentials for Email request.
8)Now type the python code which will fetch the temperature data, every 10 seconds, and send out an email alert, if the temperature goes beyond the temperature thresholds and also do a z-score analysis such that it detects an anomaly when someone opens the door of the fridge.
ALOGORITHM OF CODE
step-1: Fetch the latest sensor value from the Bolt device.
step-2: Store the sensor value in a list, that will be used for computing z-score.
step-3: Compute the z-score and upper and lower threshold bounds for normal and anomalous readings.
step-4: Check if the sensor reading is within the range for normal readings.
step-5:If it is not in range, send the EMAIL.
step-6: Wait for 10 seconds.
step-7: Repeat from step 1.
9) We get the output by running the above given code
10)With this output we also get a email with the help of "Mailgun"
Mailgun basically is an Email automation service. It has a very powerful set of inbuilt functions for sending emails. Developers can process their email with the help of Mailgun API
Comments
Please log in or sign up to comment.