Reboot a digital Pin assigned button

Not that much more.

GPIO16 (Pin D0 on the NodeMCU) isn’t such a good choice of pin.
If you are able to change it (assuming that its not a pre-built PCB) then there are better choices:

Pete.