linearizing sharp IR sensor graph

Just for completeness: that's not a logarithmic relationship, its a reciprocal one.

It is not reciprocal - although the approximation formula is - I put measurements (see previous sketch) in a spreadsheet and let it determine the formula but it allways misfit somewhere in the range. That's why I used multiMap(). And yes, it is an approximation too, but by adding extra points it can decrease the maximum error.