Mosfet provokes high voltage drop and become hot
Your problem is that you're using an N-channel MOSFET as a high-side switch. This is not recommended. Provided your pump doesn't need to be connected to the +12V ground, the correct configuration for your STP16NF06L as a low-side switch would be:







simulate this circuit &ndash; Schematic created using CircuitLab