Making sense of sensory data