 void loop() {
   if (Serial.availableForWrite() >= 2) {
     adcVal = analogRead(3);
-    byte msb = adcVal/256;
+    byte msb = adcVal / 256;
     Serial.write(msb);
-    byte lsb = adcVal%256;
+    byte lsb = adcVal % 256;
     Serial.write(lsb);
   }
   delay(5); // delay to limit sample rate of ADC and transmission of data to PC


void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  //  pinMode(3, INPUT);
  Serial.begin(115200);
  theta.attach(12);

  }
  if (Serial.readBytes(bytes, 3) < 3)
    return;
  byte cmd = bytes[0];
  bool disable = false;
  switch (cmd) {
    case CMD_SET_SERVOS:
      {
        if (disabled) {
          disabled = false;
          theta.attach(12);
          z.attach(9);
        }
        int thetaDeg = bytes[1];
        int zDeg = bytes[2];
        theta.write(thetaDeg);
        z.write(zDeg);
      }
      break;
    case CMD_DISABLE_SERVOS:
      {
        disabled = true;
        theta.detach();
        z.detach();
      }
      break;
    case CMD_RUN_POND: {
        digitalWrite(FISHING_POND_MOTOR_NOT_SHUTDOWN, HIGH);
        digitalWrite(LED_BUILTIN, HIGH);
      }
      break;
    case CMD_STOP_POND: {
        digitalWrite(FISHING_POND_MOTOR_NOT_SHUTDOWN, LOW);
        digitalWrite(LED_BUILTIN, LOW);
      }
      break;
  }
}
