Probably an app on your phone that tracks your sleep. There are quite a few of them. I’m not sure though which ones are the best.