On mine, there are some sharp solder points on the back of the button that eventually pierced the wire, and the simple act of closing the door into the house would cause the garage door to open or close. Sometimes it would happen randomly.

Check your sensor first. The button might be stuck causing it to work like that. But like everyone here says, better change the code or replace the sensor itself. No need to be scared. It's just a matter of security issues with the sensor in your garage.

The security code is not the issue unless your referring to the 4 digit pin on the exterior keypad that some GDO's have. JLMCDANIEL, Garage door openers made after 1993 do not use dipswitch codes to program devices, they all use rolling code technology. Quiky Questions, What type and age of garage door opener do you have?