The primary valve is controlled by a PID calculation based on the secondary supply water temperature and setpoint.