During the day the earth becomes hot due to radiation from the sun and the heat from the earth goes in the space so, the temperature of the earth is reduced. But if the sky is cloudy, the heat radiated by the earth at night is reflected back on the earth which increase the temperature of the environment. That is why clear sky nights are cool as compare to cloudy nights.