Hello @Simon44,
Here is a topic that may be of interest to you:
Need assistance reading sequential inputs from arduino serial
You will find that there are many topics on this.
Serial communication can be a challenge at first but once you master it the world is your oyster… at least your code will be.
:)