Detecting stimuli and relaying that information to the nervous system is