Using electronic devices can definitely make it harder to sleep. Intense exercise, caffeine, and stimulating activities can also make it difficult to go to bed.