• Very creative... restless leg syndrome comes though a bit in the way: never sleep detection.

    Reading and interpreting motion sensor data is quite a challenge. I tried ball tilt sensors... pretty difficult... crazy bouncy... mercury tilt sensor do a bit better... but may be you go for using (Micro) Tensorflow and specific model to get a more precise handle on it. After all, you should still be able to walk around and even Waltz Dancing to the Vienna Philharmonics on New Years Day Concert while controlling the Audio and Video... a lot that is asked for... - https://en.wikipedia.org/wiki/Vienna_NewΒ­_Year%27s_Concert

    Again: Thank you very much, @matheuscastello, for bringing light and laughter into the dark and quite nerd world!