Making sense of sensory input