No batteries or electronics needed. To reset, place the spring back in the latch with the ball facing down in front of the door.
eBay