Added simple calibration and minimum and maximum read values