fix sensor's value