interfacing a sensor

hello,
i need to program my arduino to store a look up table, and as and when it reads a value from the sensor, it needs to go through the table and display the value if it finds a match in the table. can anyone provide some suggestion?..
thankyou