I got it assembled on a breadboard and it seems to be working well. For testing I put the sensor and an analog gauge on an 1/8" tee and put some pressure on it with a bike pump. The gauge on the pump and the oled were pretty close. The old analog gauge was about 7-8 lbs off, it's probably not very accurate. I was checking out the code, and thinking about messing around with the scaling of the sensor. I'm a novice at coding, but looks like these are the lines that define the scaling.
fpOutput = map(fpSignal, 0, 1023, 0, 5000);
fpFinal = ((fpOutput - 500)/40);
I'm confused by the numbers/math, Can you explain how this is calculated, where the numbers come from? I think I understand that the first line sets the input to be 0v min and 5v max. But not sure whats happening on the second line.