5V water pump not working properly when powered through a Wemos relay shield

Hi GaryP, thanks a lot for your answer. It is true, I forgot to draw that I am feeding power only to the Wemos D1 through its usb connector.

So I attached the power adapter to the wemos and thus the pump in that schematic will receive power from the Wemos.

It is true it is missing the schematic of the moisture sensor or of the distance sensor, but also removing those sensors and leaving that schematic I get the same result.

I loaded Tasmota on the Wemos D1, so I control the relay on and off through the web interface.

I hope I answered all the questions now :slight_smile: