fix sensor data compare