Keep variable value until serial input is changed

PaulS:
There are other options...

Like...