of course you can send a message that includes data from several sensors.What I don't understand is why you think it is not possible and if you can explain that we might get somewhere. Clearly there is a mismatch between your understanding of what we are saying and our understanding of what you are saying.Maybe if you provide a few examples of the typical data that you want to send.The code in your GitHub link is much too long to study (or I am just lazy)....R
It seems that the lidar data being sent over from ardunio through the serial connection is already in use so the servos are unable to connect (their data from the ardunio board is also being sent to processing via the same serial method as the lidar sensor).
I can't be sure if you understand that Processing is one PC program and the Arduino Serial Monitor is a different PC program. That is the reason why you can't talk to both of them at the same time.I can't get my head around thisIf the one Arduino is sending Lidar data and receiving servo data I can't understand why there is a problem. Unless of course the code is not written properly to keep track of the different messages.If you can produce a short program that illustrates the problem I will study it. But the stuff on your Github link would take far too long to figure out....R
Have a look at the 3rd example in Serial Input Basics. I know it is intended for receiving data into the Arduino but the same technique can be used in a PC program.For example you could send something like <123, 45, 67> where 123 is the Lidar value, 45 is the servo1 value and 67 is the servo2 value. The PC program will know which is which by the order in which they are presented. The < and > mark the start and end of the message....R