I take a prescription medication, trazadone, for sleep. I went thru a sleep study prescribed by my doctor to rule out reasons for sleeplessness. He then prescribed trazadone. During the study, I also learned about sleep hygiene. Such things as going to bed and getting up at the same time every night. Only doing quiet calming things for an hour before going to bed. Not watching TV or being on the computer during that time. Getting at least 15 minutes of sun in the morning. etc. That helped some.
Trazadone was formulated as an anti-depressant originally. Now it's mostly used just for sleep. I've been on it for over a year and have not developed a dependency for it. I take it once I wake up and am unable to get back to sleep. It doesn't make me groggy and I'm able to function when I wake up but I've read on this site that it does slow down their minds for some.