One of the most important things is to avoid electronic device screens for at least an hour before bed. The blue light stimulates your brain and body to go into the wake up mode, making it much harder to get to sleep.
This is a purely modern problem, of course!
Staying up late surfing FR drinking in excess is causing my insomnia?