The problem of sensing and the neural coding of sensory events