Welcome man, I am in the same situation of yours, I am 20 and I have issues with this bad habit.
One thing you can do is trying to switch off all the electronics something like thirty minutes before going to sleep. And you can keep them in a different room from the one you are sleeping in.