Sensor code