 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);

 */
int getPin(char *pin) {
  int ret = -1;
  
  if(pin[0] == 'A' || pin[0] == 'a') {
    switch(pin[1]) {
      case '0':  ret = A0; break;
      case '1':  ret = A1; break;
      case '2':  ret = A2; break;
      case '3':  ret = A3; break;
      case '4':  ret = A4; break;
      case '5':  ret = A5; break;
      default:             break;
    }
    
  } else {
    ret = atoi(pin);
    
    if(ret == 0 && (pin[0] != '0' || pin[1] != '0')) {
      ret = -1;
    }

 */
void dr(char *pin, char *val) {
  Debug("dr");

  int p = getPin(pin);

  if(p == -1) {
    Debug("badpin");
    return;
  }

  pinMode(p, INPUT);
  int oraw = digitalRead(p);

  char m[7];
  sprintf(m, "%02d::%02d", p,oraw);
  Serial.println(m);
