Thank you for that PaulMurray. I got my alarm system working with bounce2 library. The ghost inputs has gone.
Septillon, is there a formula to get the capacitance with respect to the distance of long wire? If this is implemented, the wires could reach up to more or less 300 meters for a single pushbutton input.