Hello, I am new to programming Arduino. I am trying to build a refrigeration monitor. I am using a 0-5 vdc pressure sensor on analog input 0. I need to read the pressure input, find the two values in the table that the reading falls between and call out the temperature reading. The table is basically a pressure to temperature table. find pressure reading in chart and cross over to find corresponding temperature. I was going to do calculations, but the formula is way to complex and involved, hence the cross reference table. I have the analogRead a float value to one decimal place mapped from 0-1023 to 0-500 PSI. I am having trouble taking the value, say 34.7 and getting the temperature from the table. 34.7-35.6 is the range for a cross reference of 1 deg. I would need to get the value, scan the table to find out where it falls between the two values (interpolate ?) and then retrieve the temperature value for further processing. Thanks in advance for any help, Nik
P.S. I have attached the pressure to temperature chart for reference.
advantageFYI289.pdf (285 KB)