A relaxing sleep enviroment is important to treat insomnia. So you need to pay attention to your bedroom atmosphere.
The temperature of your bedroom matters when you sleep. Mostly, people tend to have a sound sleep in a relatively cool environment.
Your bed should be a place for sleep only. Don't work, watch TV, or study in your bed. Then your brain can associate your bed with sleep merely.
Your pillow can also help you. A comfortable pillow can help you sleep well. By the same token, you should also consider replacing your mattress to create an agreeable sleep environment for you.
Key word: insomnia causes treatment