SMC PSE530-M5

Higher Pressure = higher difference (up to ~15%), while i get the correct atmosphere pressure.
The other sensor is an external pressure meter (i have done it with 2 different with same values coming out ;-))

Here is my first code. Like i said: I have tested hours and hours with many different functions and code versions. this was my first aproach:

return mapfloat(v, 0.0f, 1023.0f,_sensorMin, _sensorMax);

where _sensorMin and _sensorMax are the configured values for the sensor.
Floatmap is this function for floats (equals map for integers):

float AnalogSensor::mapfloat(float x, float in_min, float in_max, float out_min, float out_max)
{
  return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}

Today i found out, that the sensor gives
1V => 0bar
5V => 10bar