Problems with displaying different sensor values on lcd with ir sensor.

int  determineWhatToDisplay;

That doesn't look like a function.