Control of temperature and humidity