Esp8266 node mcu and 5v relay powering issue
Hey my problem is resolved. The fault was that i was powering the relay as well as esp through PS but later i powered only esp with PS and powered the relay through vin and gnd of esp and it workes wholeheartedly. Thank u Hufi, vu2nan and Andy aka for taking efforts for understanding and replying