The temperature of room should be same with the temperature you need. So check your thermostat before going to sleep, and turn it as you want. Check window pane, this will help you to keep your room dark and also stop outside temperature to affect the temperature of your bedroom.