   Serial.println("Connected to network.");
   Serial.println(Ethernet.localIP());
 
+
+  
+  digitalWrite(ledPin, HIGH);
+ 
+
 }

}

void play_song() {
  Serial.println("Playing song");
  for(int i = 0; i < sizeof(song_notes) / sizeof(int); ++i) {
     if (song_notes[i] > 0) {
       tone(SPEAKER_PIN, song_notes[i], song_lens[i] * note_rate);
     }
     delay(song_lens[i] * note_rate + 100); 
  }
}

void loop() {
  int buttonState = digitalRead(BUTTON_PIN);
  if (buttonState == HIGH) {
    play_song();
    send_message();
  }
 
}

void setup() {
  // start the serial library:
  Serial.begin(9600);
    
  pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT);
  
//  // start the Ethernet connection:
  int errEthernet = Ethernet.begin(mac);
  if (errEthernet == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    Serial.println(errEthernet);
    // no point in carrying on, so do nothing forevermore:
    while(true) {
       digitalWrite(ledPin, LOW);
       delay(1000);
       digitalWrite(ledPin, HIGH);
       delay(1000);
    }
  }
  Udp.begin(server_port);
  dnsClient.begin(Ethernet.dnsServerIP());
