I would like make a button with internal pull-up resistor. It is still fine with the dupont wire but when I solder it to 16awg wire, it became unstable and activating unpredictably. The solder is solid and introduce almost no resistance.
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project See About the Installation & Troubleshooting category.
Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
In the Arduino IDE, use CtrlT or CMDT to format your code then copy the complete sketch.
Use the </> icon from the ‘reply menu’ to attach the copied sketch.