INTRODUCTION
The project has four major objectives.
1]Fetch the latest sensor value from the bolt module.
2]Check if the value is greater than the limit.
3]If the value is greater it will send an SMS to the user.
4]Switch on the LED and will ring the buzzer.
CODE
Create a file name confy.py and save all the credentials related to Twilio . After that write the below code to save all the credentials.
Now create one more file named wake_up.py .To do so type sudo nano wake_up.py in the terminal . Now we will write the main code to collect the data from the bolt and send SMS if sensor value is greater than the limit.
OUTPUT
Since we have written a couple of print statement in the code. So the value will be printed on the code. if the value is greater then SMS will be sent to registered number. The screenshot of the sms is given below.











.png?auto=compress%2Cformat&w=48&h=48&fit=fill&bg=ffffff)




Comments