update input range for barometer