I have to his settings in the bathroom and turn sideways so it doesn’t come on every time I go by it.  I got it with my bigger one in the kitchen where I don’t have a place to keep it out of traffic in the kitchen and the Batteries￼ don’t go down has quick. But with the lock both cans keeps the dog out and the trash in