 {
 	if (soundDelayTimeout == 0)
 	{
-		tone(pinPiezo, toneRejected);
-		toneDisableTimeout = toneDuration;
-		toneEnabled = 1;
+		tone(pinPiezo, toneRejected, toneDuration);
 		soundDelayTimeout = 500;
 	}
 }


		if (button == released)
		{
			if (time > 200)
			{
				// sending notification with button press time
				udp.beginPacket(srvIp, 10000);


int doorEvent = 0;

int soundDelayTimeout = 0;

int lockTransitionTimeTimeout = 0;
