 void dht11Read(char *pin) {
   Debug("dht11Read");
   int p = getPin(pin);
-  
-  if(p == -1) { 
-    Debug("badpin");
-    return; 
-  }
-  
+
+  if(p == -1) {
+    Debug("badpin");
+    return;
+  }
+
   int chk = DHT11.read(atoi(pin));
-  
+
   char m[7];
   sprintf(m, "%s::%d::%d", pin, DHT11.temperature, DHT11.humidity);
   Serial.println(m);

  if (atoi(val) == 0) {
    debug = false;
    Serial.println("goodbye");
    
  } else {
    debug = true;
    Serial.println("hello");

void loop() {
  while (Serial.available() > 0) {
    char x = Serial.read();

    if (x == '!') {
      index = 0;      // start

    } else if (x == '.') {
      process(); // end

    } else {
      messageBuffer[index++] = x;
    }
