The carotid body functions as a sensor: it responds to a stimulus, primarily O partial pressure, which is detected by the type I (glomus) cells, and triggers an action potential through the afferent fibers of the glossopharyngeal nerve, which relays the information to the central nervous system.