             Serial.write(' ');
             Serial.print(potentiometers_control.get_position(sensor_index));
             Serial.write('#');
-            i++;
+            i += 2;
           }
         else
           if (tmp_str[i] == 'U' || tmp_str[i] == 'u'){// ultrasonic

                    }
                }
                Serial.write("#");
                i++;
              }
        }
        else

          Serial.write("D");
          Serial.print(motor_index);
          Serial.write('#');
          i += 2;
        }
        else
          if (tmp_str[i] == 'L' || tmp_str[i] == 'l'){// locks motor
