   pin[2] = '\0';
   strncpy(val, messageBuffer + 4, 2);
   val[2] = '\0';
+  strncpy(aux, messageBuffer + 6, 3);
+  aux[2] = '\0';
   
   if (debug) {
     Serial.println(messageBuffer);

  if (strcmp(cmd, "00") == 0) {
      sm(pin, val);
  } else if (strcmp(cmd, "01") == 0) {
      dw(pin, val);
  } else if (strcmp(cmd, "02") == 0) {
      dr(pin, val);
  } else if (strcmp(cmd, "99") == 0) {
      toggleDebug(val);
  }

#include <Servo.h>

char messageBuffer[11];
int index = 0;
char cmd[3];
char pin[3];
char val[3];
char aux[4];
bool debug = false;
Servo servo;

void setup() {
  Serial.begin(115200);
