I want to read a value from an oil pressure sensor, but I don't know how to convert the analog input values to meaningful data.
The following image is part of the manufacturer's data sheet:
I plan to use a simple voltage divider circuit to read the signal into an analog pin, so that part's not an issue. I'm more concerned about converting the 0-1023 values to something that matches the sensor values (0-5bar) according to the Characteristic curve described in the image.
I suppose I could just make some simple comparison values so that if the analog-equivalent-of-the-resistance is within a certain boundary, then I can declare that value as 1, 2, 3bar etc. But what I don't have any clue about is how to interpret the formula described for the Characteristic curve. I never studied maths past the age of 15 so I'm completely out of my depth here. Can anyone shed any light on where I should start?