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

My advice is to make three different pieces of code (.ino files). Once they work one by one, to merge them is not difficult (as long as they are quite small ones).

Is the LCD working? (Can you display what you want?)

Regards