The project basically has 4 major objectives: (A) Reading the value from the sensor (B) Sending the SMS to the user (C) Switching ON the LED (D) Switching ON the Alarm(buzzer).
The sunlight falls on the LDR sensor which is places outside. LDR reads the value in every 10 seconds of gap. As soon as the reading is taken it is compared with the limiting value of the sensor. When the sensor value is less that the limit the LED and the Alarm does not switch on. Whereas when the value is greater than the limiting value then a SMS is send to the user saying "Wake Up .Good Morning have a great day ahead". This leads to the switching ON the LED(light) and Alarm(buzzer).
2. DEMONSTRATIONCheck out this video for further working of the device
3. ALERT NOTIFICATION VIA SMSFirstly create a file named as confy.py as shown in the image and then secondly make a file named as smart_alarm.py then write the code given below in the image.
Below is the code for the program smart_alarm.py and confy.py
The output should be as follows:
Comments
Please log in or sign up to comment.