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

vffgaston:
Paul suggests you to divide the whole problem into three functions, that would be called sequentally (inside the main "loop", that repeats continuosly; is the orthodox procedure)

Each one are the three parts I told you to develop separately.

Regards.

So I first make tose functions in loop or setup? and then call them in the if case for the ir sensor? Right?
And thanks for the help.