It has a plug ... I thought it also had batteries! Can’t use on the front door.. not sure where I can use it.. going to send it back! The first time I have ever had to send anything back..