Sending Multiple Serial Data using Punctuation
Set an algorithm for p5.js to read the serial input
Receive the data in P5.js
Having done the code in p5.js, I modified the code in Arduino. Then when I tried to run it, I kept getting error. After some plugging and unplugging, shutdowns and restarts, it suddenly came to me that it may because I ran the code in p5 before and forgot to stop it. So I stopped the sketch, and Arduino was working again.