Step 1. No phone/TV/screens in the bedroom
Step 2. No screens 30 min before going to bed
Step 3. Go to bed at the same time each night
Step 4. Set yourself up to actually get enough sleep
Try this for 6 weeks and then if you seriously still cant sleep discuss with a doctor.
There are alarm apps that can be set up to require taking a picture of a specific thing to turn the alarm off. I used one in college, where I had to take a picture of my toilet. Ten years later I still wake up around 6am every day with no alarm.