However, if you can't sleep because you dream too much, you need to pay attention-you need to relax and don't care too much about dreaming. It is not appropriate to think about problems or read books between half an hour and 1 hour before going to bed. You should do proper physical activities (such as walking) to avoid nervous mental activities. You can also eat some foods to prevent insomnia, such as milk and fruits (apples, bananas, pears, etc. ), sugar water, millet porridge, jujube porridge, lotus seed porridge and so on. Don't use hypnotic and sedative drugs easily, because it has side effects such as drowsiness after getting up in the morning, addiction and rebound after stopping taking drugs, which is not suitable for long-term use. I suggest that if you have insomnia and dreaminess, you should first look for the reasons from your own psychology or seek the help of a psychologist.