You are combining a few steps and taking a high level view.
The code will take smaller steps.
if a number is received
if it is less than x
move servo 1
if it is between y and z
move servo 2
and so forth. Little steps, none of which have the least idea of a concept of to what it is they contribute.
You might start with the reception:
HTH
a7
1 Like