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

PaulS:

int  determineWhatToDisplay;

That doesn't look like a function.

Probably, I never used functions before and still have no clue what they are and how to use them. Vffgaston sent me a link to an explanation about them but I still don't really understand.