   Serial.println(fail);
   rate = (float)pass/(pass+fail);
   Serial.println(rate*100);
-    
+
 
 /*  xBee.readPacket(charPk); //Trying reading, printing and checking with char packages
   for(int i = 0; i < 24; i++){

int accZ;
int accY;
int accX;
    
void loop() {
  for(int i = 0; i < 50; i++){
  xBee.readPacket(tempPk);
  xBee.decodePacket(tempPk);
  //for(int i = 13; i < 23; i++){
  Serial.print("Z = ");
  Serial.print(acccZ);
   // Serial.print(tempPk[i], DEC);  // Printing the read package
  Serial.print(" ");
  //}
  
  if(xBee.checkPacket(tempPk)){ //Check and print if the package passed
    Serial.println("| INT -- PASS |");
    pass++;


int tempPk[24] = {};

int accX;
int accY;
int accZ;

void setup() {
  Serial2.begin(SERVO_BAUDRATE);
