Hint...
Code:
serin2 GPIO.0, 2400,[DEC MYVAR]
Take another look at the manual and appendix B , I think it is B, MODE number.

Then add a short pause maybe 1/4 second, and a GOTO MAIN

MAIN: