     //TODO: and not waiting for second sensor
     
     // Powerdown at the start of the next loop
-    pingPowerState = 0;
-  }
-  
-}
-
+    powerState = 0;
+  }
+  
+}
+

}

/**
 * Transmit the message.
 */
void transmit(char *buf) 

{
  Serial.begin(115200);
  
  // Zero all the flags.
  flags = 0;
  
  pinMode(PIN_PIR, INPUT);
  
