I personally found that using my phone when I can't sleep just makes it worse, although I have smack the phone on my face after falling asleep once or twice in my life 😂
What works for me is reading. I always have my Kindle on my nightstand drawer.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.