Sensory coding in the natural environment