Fixed sensor data -1 problem