There could be a number of different possible reasons. Eating too much too close to bed can make it difficult to sleep, although going to bed hungry can actually interfere with sleep too. The temperature of the room is important; if it’s too hot or too cold, then you’ll have trouble sleeping. Try to make the room as dark as possible, even covering the small indicator lights on electronic devices.