Good that you have a solution. For future using (serial) communication, you can get ideas from Robin's Serial Input Basics - updated.
Assuming d10 .. d29 are variables, you might benefit from the use of arrays.
Good that you have a solution. For future using (serial) communication, you can get ideas from Robin's Serial Input Basics - updated.
Assuming d10 .. d29 are variables, you might benefit from the use of arrays.