The progression of the sweat gland over time, from its formation to the mature structure. Sweat glands secrete an aqueous solution that is used in thermoregulation.