Set point and feedback loop

Set point and feedback loop

how does the body know that it has to lose or has to generate heat? That is the function of a set point together with a feedback loop!