function calibrated = calibrate_distances(values)

voltage = values*5/1023;

% Calibrate with preview calibration curves.
% Sensor 0.
calibrated(1) = 241.5631*exp(-3.8846*voltage(1))+51.0816*exp(-0.7284*voltage(1));
% Sensor 1.
calibrated(2) = 172.9317*exp(-3.7906*voltage(2))+43.3609*exp(-0.6018*voltage(2));
% Sensor 2.
calibrated(3) = 159.7164*exp(-3.4773*voltage(3))+44.8366*exp(-0.6893*voltage(3));
% Sensor 3.
calibrated(4) = 179.4828*exp(-3.5646*voltage(4))+41.8678*exp(-0.5470*voltage(4));
    