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

The only problem is that they aren't updated real time on the LCD.

Of course they aren't. The ONLY time you change what is displayed is when you press an IR button. I told you, way back at the beginning that you need to separate the "what to display" code from the "display that" code. You have NOT.