Conversion of sensory signals into perceptions, memories and decisions