Microprocessor-based temperature controller