Temperature and humidity controller