When someone passes nearer to the device then it asks for a password if we give a correct password then it works.