fix sensor value formatting