Someone's gone to a lot of trouble to make a program that should be one or two hundred lines
about one or two lines.
Two lines is about all it is in the main routine if I remember.
The serin command that has a "wait" option, and the LCDOUT command.
Those two lines wrapped in a loop is your program.