     if ((track != oldTrack) || ( (millis() - lastPowerSent) > 10000 ) ){  
       oldTrack = track;
       lastPowerSent = millis();
-      send_power_state(track);
+      if (track == 0) {
+         sendData(127,0);
+      } else {
+         sendData(127,1);
+      }
     }
 
 }


static uint8_t track, oldTrack;

uint8_t payload[12] ;   // 12 byte string for sending data to coordinator

// Create an XBee object
XBee xbee = XBee();

ZBRxResponse rx = ZBRxResponse();
ModemStatusResponse msr = ModemStatusResponse();

// Address of receiving XBee (always: Broadcast!)
XBeeAddress64 broadcast64;
ZBTxRequest zbTx;
ZBTxStatusResponse txStatus;
