ESP8266 Relay Stays On – Why Won’t It Turn Off?

Hi, I bought a kit on Amazon that I'm trying to control with an ESP8266. I’ve successfully uploaded the code to the ESP8266 and can monitor the readings from a capacitive moisture sensor through the serial port. I’ve also calibrated the software to trigger a relay that turns ON with LOW level to control a pump.

While the serial monitor and relay indicator lights show the pump is turning on and off as expected, the relay itself stays on. The only way to turn it off is by disconnecting the 'In' pin or the VCC. I'm powering the relay through the 'Vin' pin, which measures 4.6V. I’ve also tried using the 3.3V pin from the ESP8266, but the issue remains the same."
file0.jpg
file1.jpg
Was this page helpful?