Fix sensor conversion problem and save minmax