 	}
 
 	unsigned long time = millis() - reedEvent;
-	if (reedToDebounce && time > 200)
+	if (reedToDebounce && time > debounceDelay)
 	{
 		reedToDebounce = false;
 		// sending notification about door state

	Ethernet.begin(macTmp, ip);
	udp.begin(10000);

	// playing song in order to properly... boot the device
	// we really need this time (about 7-10 secs)
	playSong();

	digitalWrite(9, HIGH);
}

void playSong()
{
	tone(pinPiezo, toneAccepted, 100);
	for (uint8_t i = 0; i < 15; i++)

				else
					unlockDoorForce();
			}
			else if (time > debounceDelay)
			{
				// sending notification with button press time
				char buf[10];
