Serial.read issues

Hello
You may implement a FSM to go through the desired input steps.