Self-Calibrating Sensory Systems