Fixed order of distance sensors.
Added calibration and normalization of middle sensors.
Added lots of logic.
Added sensor evaluation functions.