© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
DevHeads IoT Integration ServerDIIS
DevHeads IoT Integration Server•15mo ago•
3 replies
aymen ammari

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
DevHeads IoT Integration Server banner
DevHeads IoT Integration ServerJoin
The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.
2,984Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Why isn't my ESP8266 RFID Reader Providing Expected Output on the Serial Monitor?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
3y ago
Why won't my PMSM motor rotate with FOC on STM32F031K6T6?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
2y ago
Do I Need to Turn Off Thermal Relief When Adding Vias on a Ground Pad?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
14mo ago
Why isn't my "Hello World" displaying on the LCD screen despite correct connections and power?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
2y ago