Sensor codes