Turn off electronic devices before you go to sleep
Blue light, which is emitted by electronic gadgets like your phone, can lower your body's melatonin levels. A chemical called melatonin controls your sleep-wake cycle. It could be more difficult to fall asleep when your melatonin levels drop. You can also be distracted by blue-light emitting devices, which keep your brain alert. It could be harder to get to sleep as a result.
The National Sleep Foundation advises cutting off electronic use—including using your phone—at least 30 minutes before bedtime. Furthermore, even if you don't realize it, keeping your phone nearby to your bed can disturb your sleep. You could think that not looking at it right before bed is enough. Your sleep may be briefly disrupted by message notifications, buzzing, and lights that may suddenly turn on in the middle of the night.