Make an open function on the door and connect it to the pressed signal on the button. You can also make a lock function or just a locked variable for buttons that prevent the door from opening.
A slightly more advanced way would be to create two scripts, SignalEmitter and SignalReciever. The emitter would be added as a child to the button, and the reciever as a child of the door. The Emitter would have an array variable of recievers which you can manually assign from the inspector, and would call a function on all recievers when it emits. The recievers can then pass that to the door or whatever other node you want to recieve the signal.