help getting loop to loop

you're welcome.

BTW: I slightly modified my sample, to have less unnecessary float calcs.
If it weren't based on your code, I'd try to go for unsigend long milliseconds

BTW2: Which hardware do you use, needing 6 pins for the LCD but just one for the keypad ?