Resistor overheats

fdqvdm:
But I discovered when I hold the push button the resistor heats up to a point that it starts to smoke and burn.

Any ideas on what I am doing wrong?

Kind regards,
Floris

First idea is ...... ensure that the component that you're using is really what it is. So if 10 kiloOhm resistor is being used, then use a multimeter (in resistance measurement mode) to measure the resistance, to ensure that the resistor is really ten thousand ohms. Alternatively, if the colour code indicates 10 thousand ohm, then that will help a lot as well.