finish sensor.cs