Distance measurement

Hello all, i'm developing a system for measurement of distance. In particular, my project is made in this manner: 1) reading of analog input of arduino from the sensors that measure the distance 2) comparison the values with an .csv table file internal in arduino memory 3) execution.

My problem is point 2. Can i store in arduino mem one table with about 300 values for comparing them with the measured values? Can you send me some software examples for studying? Thank you in advance for your help.

You just need to compile the csv table as a C array. It can be stored in program memory to save RAM.