Circuits in the brain act as an internal clock to tell us it is time to sleep and to control how long we then stay asleep. A new study in flies suggests a part of that clock constantly monitors changes in external temperature and integrates that information into the neural network controlling sleep.