Butterflies have specialized sensory structures on their legs, known as gustatory sensilla, that allow them to detect chemicals when they land on a plant. In effect, their feet can act like tiny chemical sensors, helping them identify and assess a plant through physical contact rather than depending solely on sight or smell.