Sensor integration code