I recommend that you review this tutorial on Serial communication and use the techniques given.
https://forum.arduino.cc/t/serial-input-basics-updated/382007
I recommend that you review this tutorial on Serial communication and use the techniques given.
https://forum.arduino.cc/t/serial-input-basics-updated/382007