What to do when you can't sleep

sleeping is a big issue for me also, but I am not retired and still have to get up at 5:30. I tried to get enough physical exercise throughout the day to make myself tired and I take a sleeping aid Ambien three times a week. I have to stay on a routine or I could wake up 30 times a night easy. I have to sleep alone most of the time with my wife in the room across the hall. A fan for white noise and I've been doing a little better lately.