The integumentary system has a variety of functions; it may serve to waterproof, cushion, and protect the deeper tissues, excrete wastes, and regulate temperature, and is the attachment site for sensory receptors to detect pain, sensation, pressure, and temperature.