Try to refrain from eating at least two hours before bed, especially carbs. Your
ghrelin (hunger hormone) needs to be high in order to slip into deep sleep, but since carbs lower this hormone, they may prevent you from drifting into dreamland. Not to mention, if your stomach is full or you're digesting a big meal, it's hard to fall asleep, especially if lying down gives you heartburn.