A basic question but I am trying to understand how to implement an array with pre-measured analog values. I have 600 values because my sensor is not linear. So sensorvalue of 300 = outputvalue 1, sensorvalue of 301 = outputvalue 3, sensorvalue of 302 = outputvalue 4 etc.I have all the values for each step measured, but instead of creating 600 lines (if sensorvalue == 300. serialPrint 1) I know it must be easier to use array. I am dumb in how to define and call this array. So if my analogread value is the 10th value it must fetch the 10th value from an output array, correct?
How do you implement such a structure and how to call it? Sorry for the basic question.