The role of the skin in regulating body temperature, including the process of sweating and shivering.