The temperature of the tablets has to be maintained between -40 and -30 degrees Celsius. Just a few months ago, the government declared the following rules for manufacturing these tablets.
While the manufacturer is allowed to maintain the temperature of the tablets between, -40 and -30 degrees Celsius, the temperature of the tablets should never remain between -33 and -30 degrees for longer than 20 minutes at a time.
- Also, the manufacturer should maintain a log of when the cooling chamber for the production of the tablets is opened.
- These rules should be implemented within a month of their declaration. Failing to comply would lead to cancellation of the pharmaceutical production permit.
While the government declared these rules to ensure that the medicine produced at all pharmaceutical companies, was good enough to be used by the general public.
Implementing such stringent measurements was no easy task.
Here we will be using a bolt iot anomaly detection project which will help us to detect if their is any irregular changes in the temparature and temaparature crossed the threshold it will be sent as a alert messege. Here we use twilio account to get an alarm messege. We create a virtual private server(VPS) on ubuntu which will process the data.
Introduction to TwilioTwilio is a third-party SMS functionality provider. It is a cloud communications platform as a service (PaaS) company. Twilio allows software developers to programmatically make and receive phone calls and also send and receive text messages using its web service APIs.
Please note that SMS delivery via a trial Twilio account is not guaranteed to be instant by Twilio. Also, note that SMS will not be sent to numbers which have DND(Do Not Disturb) turned ON.
Creating an account on TwilioOpen https://www.twilio.com/ in browser.
Click on Get a Free API Key
button to sign up.
provide your mobile and choose a number from which you get the messege as alert :
This things are to be provided:
SID = 'You can find SID in your Twilio Dashboard'
AUTH_TOKEN = 'You can find on your Twilio Dashboard'
FROM_NUMBER = 'This is the no. generated by Twilio. You can find this on your Twilio Dashboard'
TO_NUMBER = 'This is your number. Make sure you are adding +91 in beginning'
API_KEY = 'This is your Bolt Cloud accout API key'
DEVICE_ID = 'This is the ID of your Bolt device'
and then we will create another python program which will create a VPS over ubuntu, connect server with sensor values readings and detects anomaly.
Note: The above "sensor_value" is the raw temperature reading, obtained from the LM35 sensor. In case you want to convert this value to the temperature in degree Celsius, use the formula:
Temperature=(100*sensor_value)/1024
Comments