     if (cmd.cmp("tilt")) {
       cmd.parse(array);
       tilt_val = array[1];
-      //tilt.write(tilt_val);
     }
     else if (cmd.cmp("go")) {
       cmd.parse(array);
       p = array[1];
       v = array[2];
       s = array[3];
-      //motors.go(p, v, s); 
     }
     else if (cmd.cmp("light")) {
       cmd.parse(array);

// the more the readings will be smoothed, but the slower the output will
// respond to the input.  Using a constant rather than a normal variable lets
// use this value to determine the size of the readings array.
const int numReadings = 100;

int readings[numReadings];      // the readings from the analog input
int index = 0;                  // the index of the current reading

int s = MIDPOINT;

void setup(){

  Serial.begin(115200);

