The process by which the nervous system receives and interprets sensory information from the environment.