The skin of a worm performs several important functions, including respiration, excretion, and sensory perception. The skin is thin and moist, allowing oxygen and carbon dioxide to pass through it for respiration. It also absorbs moisture and eliminates waste products through the skin. Worms have sensory cells in the skin that help them detect light, touch, and chemicals in their environment.