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

	servoDo(clockwise);
	isDoorLocked = false;
}
void lockDoor()
{
	if (isDoorLocked)

	if (millis() != lastMs)
	{
		lastMs = millis();

		if (soundDelayTimeout)
			soundDelayTimeout--;
