I have built this project to keep a check on children how much time they spend on TV when parents are not at home.
The Bolt Wifi IoT device regularly senses the light intensity of the television and as soon as the light sensor input value goes above Z-score upper limit, it sends a message to the user stating TV has been turned on. Now, after some time the z-score changes dynamically on the basis of continuous input of light sensor and sends a message to the user when the TV is turned off when the input value falls below the z-score lower limit.
1. DigitalOcean account: To work with Python-based code execution.
2. Twilio SMS service account: To send SMS to the user on the basis of conditions satisfied by python code.
3. BOLT wifi module with light intensity sensor and 10k ohm resistor: The hardware configuration is below.
4. A television.
On execution of my python code, the outputs recorded were somewhat like the ones displayed below :
Since all my number is on DND, SMS was not delivered but we can check the report on Twilio dashboard :