        udp.beginPacket(udp.remoteIP(), udp.remotePort());
        udp.write(packetBuffer);
        udp.endPacket();       
-       
+       requestID = requestID + 1;
+      
     } else if ( !buttonState && !sentPacket ) {
-       Serial.println("Sending pressure = off");               
+       Serial.println("Sending contact = off");               
        sentPacket = 1;     
-       requestID = requestID + 1;
  
        char buffer[12];
        strcpy(packetBuffer,(char*)pgm_read_word(&loopPacket1) );

     sentPacket = 0; 
  }  
  lastButtonState = reading;

     
    /* 
        
    char buffer[12];
    
    strcpy(packetBuffer,(char*)pgm_read_word(&loopPacket1) );
    strcat(packetBuffer, itoa( requestID, buffer, 10) );
    strcat(packetBuffer,(char*)pgm_read_word(&loopPacket2) );
    for (byte thisByte = 0; thisByte < 6; thisByte++) {
      sprintf(buffer, "%x", mac[thisByte] );
      strcat(packetBuffer, buffer); 
    }   
    strcat(packetBuffer,(char*)pgm_read_word(&loopPacket3) );
    for (byte thisByte = 0; thisByte < 6; thisByte++) {
      sprintf(buffer, "%x", mac[thisByte] );
      strcat(packetBuffer, buffer); 
    }   
    strcat(packetBuffer,(char*)pgm_read_word(&loopPacket4) );
    strcat(packetBuffer, dtostrf(t,4,2,buffer));
    strcat(packetBuffer,(char*)pgm_read_word(&loopPacket5) );
    strcat(packetBuffer, dtostrf(h,4,2,buffer));
    strcat(packetBuffer,(char*)pgm_read_word(&loopPacket6) );
    strcat(packetBuffer, itoa( millis()/1000, buffer, 10) );
    strcat(packetBuffer,(char*)pgm_read_word(&loopPacket7) );

    Serial.println(packetBuffer); 
    udp.beginPacket(udp.remoteIP(), udp.remotePort());
    udp.write(packetBuffer);
    udp.endPacket();
    
    */
 
  
}


       Serial.println(packetBuffer); 
       udp.beginPacket(udp.remoteIP(), udp.remotePort());
       udp.write(packetBuffer);
       udp.endPacket();      
       requestID = requestID + 1;
       
   }
    
  }
  
