Relay with NodeMCU is not working I'm using a Relay Channel and NodeMCU(8266-WIFI). When i trigger the connection, LED Turns ON in Node MCU But the Relay connection is not working. I'm not sure what is the issue, Please help to fix it..
My Pin connection as follows.


NodeMCU (VIN) -&gt; Relay (VCC)
NodeMCU (G) -&gt; Relay (G)
NodeMCU (D1) -&gt; Relay (IN4)


My code as follows,
#include &lt;ArduinoJson.h&gt;
#include &lt;ESP8266WiFi.h&gt;  
#include &lt;FirebaseCloudMessaging.h&gt;
#include &lt;Firebase.h&gt;
#include &lt;FirebaseHttpClient.h&gt;
#include &lt;FirebaseArduino.h&gt;
#include &lt;FirebaseError.h&gt;
#include &lt;FirebaseObject.h&gt;


// Set these to run example.  
#define FIREBASE_HOST &quot;xxx-xxxx.firebaseio.com&quot;  
#define FIREBASE_AUTH &quot;xxxxxx&quot;  
#define WIFI_SSID &quot;xxxx&quot;  
#define WIFI_PASSWORD &quot;xxxxx&quot;  
  
void setup() {  
  Serial.begin(9600);  
  
  // connect to wifi.  
  WiFi.begin(WIFI_SSID, WIFI_PASSWORD);  
  Serial.print(&quot;connecting&quot;);  
  while (WiFi.status() != WL_CONNECTED) {  
    Serial.print(&quot;.&quot;);  
    delay(500);  
  }  
  Serial.println();  
  Serial.print(&quot;connected: &quot;);  
  Serial.println(WiFi.localIP());  

  pinMode(D1, OUTPUT); 
  pinMode(LED_BUILTIN, OUTPUT); 
  
  Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); 
  Firebase.set(&quot;LED_STATUS&quot;,0);  
}  
  
int n = 0;  
 
void loop() {  
  // Get value  
  n=Firebase.getInt(&quot;LED_STATUS&quot;);  
 
  if (n==1) {  
     digitalWrite(D1, LOW); 
     digitalWrite(LED_BUILTIN, LOW); 
     Serial.print(&quot;LED is ON &quot;);   
     Serial.println(Firebase.getInt(&quot;LED_STATUS&quot;));   
     delay(1000);  
  }  
 else{  
   //LED_BUILTIN
   digitalWrite(D1, HIGH); 
   digitalWrite(LED_BUILTIN, HIGH); 
   Serial.print(&quot;LED is OFF &quot;);   
   Serial.println(Firebase.getInt(&quot;LED_STATUS&quot;)); 
   delay(1000); 
 }  
 
}
I found that the 3V isn't enough to power the relay.
https://www.instructables.com/Getting-Started-With-ESP8266LiLon-NodeMCU-V3Flashi/ shows the board supplies USB power (pin VU).
You can remove the jumper that connects signal voltage to relay power and connect the relay board to the USB power.
After that change I could turn the relays on and off, but I could not reliably power 4 relays, 2 relays as shown below seems fine.