My project has 2 buttons working a linear actuator. They are randomly pressing when i dont want them to. I think debouncing will fix it but i dont know where start with this code which i did not originally write.
Power_Broker:
You don't need to worry about any of that if you use the library.
Except that you have to tell the library if you want it to use the internal pullup and, if you don't, whether the external resistor is a pull-up or pull-down resistor.