Trying to understnd arrays with analogread

Lsnyman:
I am just unclear about how to define this or these tables and how to print a value from the outputvalue based on a sensorvalue from analogread.

You would treat them like any other array, like:

int outputValues[600] = {0,1,2,3,4,5,6};

or using PROGMEM:

PROGMEM  prog_uint16_t outputValues[600]  = { 65000, 32796, 16843, 10, 11234};

Assuming you have 1 value in the outputValues array, for every possible analog value then:

Serial.print(outputValues[anlaogRead(0)]);

or using PROGMEM:

Serial.print(pgm_read_word_near(charSet + analogRead(0)))