(deleted)
(deleted)
To be clear, the received values are not updated (because not received...).
Not received? Or not sent? How do you know which is happening?
(deleted)
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
You gave a bunch of pins names. Why aren'y you using them here?
I got to the gotos and gave up trying to decipher your code.
If you need to spin waiting for something to happen, goto/label is NOT the way. Create a function, and, in that function, use a while loop to wait for the right conditions to be true. Make it clear from the name of the function that it is a blocking function. Call that function from loop().
There should be NO goto statements in your code.
(deleted)