Receptors are parts of the nervous system that: