Youāre bypassing or replacing the reed switch with another of your choosing. Iām not sure what the automatic cat box youāre using is like, but if thereās not enough room to actually shoehorn in the contact sensor and magnet, a micro switch like this could be used to detect position: