Sleep aide

Ja
I have been taking melatonin for years to help me get to sleep. Since it's something you cannot take while pregnant I stopped taking it but I'm having trouble getting to sleep and staying asleep. What are alternatives for this?