      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.print( "Button state = " );
    //Serial.println( buttonState );
    if ( buttonState && !sentPacket ) {
       Serial.println("Sending pressure = on");               
       sentPacket = 1;
       requestID = requestID + 1;
       
       char buffer[12];
       strcpy(packetBuffer,(char*)pgm_read_word(&loopPacket1) );

  udp.beginMulti(ip,port);

  // Send intital packet to announce that we're here.
  //Serial.println((char*)pgm_read_word(&initialPacket)); 
  //udp.beginPacket(udp.remoteIP(), udp.remotePort());
  //udp.write((char*)pgm_read_word(&initialPacket));
  //udp.endPacket();   

}

