Fixed issue with clearing data variable before a full card code can be sent to the serial device
Added in small deplay before the door is locked