Math function added

Requires math.h library, uses log function to generate curve,
converting ADC value to cm.