int dirA = 12; int dirB = 13; // not used in this example int speedA = 3; int speedB = 11; // not used in this example int sonarPin = A2; int sonarValue = 0; String inputString = ""; // a string to hold incoming data boolean stringComplete = false; // whether the string is complete void setup() { pinMode (dirA, OUTPUT); pinMode (dirB, OUTPUT); pinMode (speedA, OUTPUT); pinMode (speedB, OUTPUT); // re...