MKR 1010 Wifi Transistor 3V+ 5V

What do you mean? I put the resistor betwen pin 12 and base of the resistor.

Also made the change as blh64 proposed but nothing changes. I added some Serial output and there you can see the difference betwen when I have connected the pump (red square) and when it's not connected (Green square).

I am sure that the problem is my poor knoledge of electronics as it seems as son as I connect the pump the pump itself low the voltage of the input in pin 8.

image