Answer explained
Why do we sweat in summer?
High external temperature or increased body heat activates sweat glands through thermoregulation. Evaporation of sweat takes heat from the skin and helps cool the body.
Cooling depends mainly on evaporation, not merely producing sweat. High humidity can slow evaporation.