Unwanted flash (Relay chatter at boot)

I am making a simple project, to controll 4 relays on and off, everything is ok, but there is a fast flashing for the relays at the connection point( on-off when connecting the adapter) which is undesired.
Is there an eddition in the code to get ride of this flash.
I am using node mcu. Could you please help me.
If it’s not clear let me know?

without (properly formatted) code, we can not help

Use D2, D5, D6 and D7 pins in order to avoid power-on relay chatter.


Read this:


Use a capacitor to avoid the flash…