 Instead of controlling the heater directly, the outer PID controller sets a heater temperature goal for the inner PID controller.The inner PID controller controls the temperature of the heater using a thermocouple attached to the heater.The inner controller's error term is the difference between this heater temperature setpoint and the measured temperature of the heater.