What do you do when you can’t sleep at night?

I often wake up at night to pee and have a hard time going back to sleep. I usually just try to go back to bed... and if I’m still awake after 30 mins or so, I will get up and go to the kitchen to find something to eat. Then, I will usually get tired and fall back asleep an hour or so after having a full stomach. During that time, I just look at my phone, mostly reading this app. You guys?