Sensor 1 function