You can follow some of the measures below to beat insomnia –
Maintain a proper sleep schedule.
Limit naps.
Limit consumption of alcohol and caffeinated drinks.
Try and reduce stress.
Participate in cognitive therapy.