sweat glands (in the middle layer of skin called dermis) release sweat, which covers the outer layer of skin (epidermis). Heat energy from the body is transferred to the water in this sweat and, when it has enough energy is evaporates. As it evaporates, it takes heat energy with it. This lowers average temperature of the body.