Sweat glands in children function similarly to those in adults but with some differences in efficiency and responsiveness. In younger children, the eccrine glands may produce less sweat compared to older children and adults, making them more susceptible to overheating. As children grow, their sweat gland activity increases, helping them better manage heat stress.