 	//enable internal pull-ups
 	digitalWrite(pinButtonSwitch, HIGH);
 	digitalWrite(pinReedSwitch, HIGH);
-	//set mode output for led
-	pinMode(pinLed, OUTPUT);
 }
 
 

}

void unlockDoor(){
	digitalWrite(pinLed, HIGH);
    servoDo(clockwise);
    isDoorLocked = false;
}

void lockDoor(){
	cleanBuffer();
	digitalWrite(pinLed, LOW);
	servoDo(counterClockwise);
	isDoorLocked = true;
}

	#define BUFSIZE 6+LENGTH
#endif

const int pinServo = 5;
const int pinPiezo = 6;

const int pinButtonSwitch = 2;
const int pinReedSwitch = 3;
