Also, avoid electronics such as televisions and computers for at least an hour before bedtime. ???All of these electronics put out a lot of blue daylight spectrum light which block melatonin so when you turn out the light, you can???t go to sleep for another 30 to 45 minutes,??? he said.