NODMCU sketch problem

I think that is a HL-525 relay module. Some explanation is here: https://components101.com/switches/5v-dual-channel-relay-module-pinout-features-applications-working-datasheet
I think it is not fully compatible with a 3.3V board.

I think your board is a ESP8266.

It is dangerous to solder wires to the pins like that. The board around it gets easily too hot and copper traces might break.

You also need a button.