PID-based temperature control library