I'm using an linear slide sensor. Using it at analogue port 0 to 3 everything is fine and the incoming data is linear.
Using port 4 or 5, the data is not longer linear but seems to be logarithmic!
Is this a hardwareproblem - I was tinkerin quite a while with this one - with external reference too - did I shoot my board??
Pins 4 and 5 on an ATmega328P are also the I2C pins. Perhaps try disabling the pullups on these lines? (I believe the Arduino startup code automatically enables them).
digitalWrite(D18, LOW);
digitalWrite(D19, LOW);
--
The Ruggeduino: compatible with Arduino UNO, 24V operation, all I/O's fused and protected