fix sensor logging error