Hardware serial communication

That depends on ...

If you send the floats as binary, you will need a synchronisation mechanism which is not impossible but can make life more complicated.

If you send them as text, life becomes easier; I suggest that you study Robin's updated serial input basics topic. Example 5 will probably be the best choice; it demonstrates a sync mechanism based on < and > and how to parse multiple comma separated values in a received text.

Once you have the receive side in place, you can implement the sender to match what the receiver expects.

2 Likes