Arduino code for door locking mechanism