When the Board is powered on the Relay get powered on as well by default, I do see the green LED lighjts up a little more brighter when the switch is in ON position.
Voltage bwteen VCC and GND on the Relay =5.15V
Swich Off:
Relay Current between GND-IN = 3.6mA
Relay Voltage between GND-IN = 0.13V
Swich ON:
Relay Current between GND-IN = 47.7 mA
Relay Voltage between GND-IN = 3.33V
Wrong relay for your setup.
Your Esp is 3.3V device and that relay circuit is made for 5V signal.
So your relay never turns completely off and eventually it’s going to fry your Esp32 Gpio sinking 5V to it.
You can try powering relay at 3.3V. Might work, might not.
Or if you like tinkering, put NPN transistor on relay input.
Okay, I may be completely wrong here but trying to learn and understand.
My understanding is that I would need a 5V relay if I want to connect to 5V rail on esp32 to the relay. But you are saying I need a 3.3V relay because the IN signal it’s getting is 3.3V?
I’m new and still trying to learn so I might not try the NPN Transistor just yet.
I am saying that your relay module is not compatible with your board.
It’s 5V relay and it doesn’t have circuit to be triggered with 0-3.3V signal.
It needs 5V signal to turn it off. And 0V signal to turn it on.
With 3.3V signal it’s not completely off. With 0V signal it’s completely on, but it sinks 5V to your Esp and eventually fries it.