A PID controller is a device that controls temperature by adjusting the on and off times of an external heat source.