Code not working as intended

These lines are only supposed to be executed once in setup and not for each loop:

debouncer.attach(pin1);
debouncer.interval(5);

You need one debouncer for each pin.