Sweating is part of the thermoregulation negative feedback loop. An increase in temperature triggers vasodilation and sweating, which is then stopped by a decrease in temperature and a return to baseline levels.