Sensory receptors function by converting external stimuli into electrical impulses through a process known as transduction. When a stimulus activates a receptor, it triggers a change in the receptor's membrane potential. This change leads to the generation of an action potential, which is then transmitted along sensory neurons to the central nervous system for interpretation.