Making the alarm irritating

But there is a problem. The problem is that the lights will be switched on and, no matter whether you get up, the light would automatically switch itself off within 20 minutes. That is a bit of problem because not every time will you wake up in just 20 minutes. So, in that case, what should we do? The first thing we need to do is to detect whether you have woken up. This is very simple and not much needs to be told here. If you wake up in the morning, it is very certain that you will move out of the bed. Once you do, we can detect the motion that can tell our automated system whether you have really woken up.

Now, what we can do here is something very simple. We can detect your motion, and based on that detection, ...

Get Getting Started with Python for the Internet of Things now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.