>>58754972Go to bed. Don't play with your phone, sleep the night until your alarm goes off.
If you're tracking sleep with your phone, just keep it face down on your bed, not under a pillow, screen brightness lowest, plugged in charging.
The phone measures movement using motion sensors, so don't put it on a bedstand or any hard surface. It will invalidate your sleep session if it doesn't detect any motion after several hours, but it's very forgiving with that.
If the app gets closed by your phone's OS overnight, you may need to change a power management setting that can't happen.