Best MOSFET to control small 12v load with NodeMCU?
If you ask 10 people here, you will probably get 10 different answers.

This is what I use as a hobbyist. The TO-220 package is friendly for home use. Low ON resistance is more important than maximum current. You want to oversize for low voltage drop and so you won't need a heatsink for most use. This part is rated at 60A, but I wouldn't use it at more than 10A or so with a 3.3V gate drive. 

If you are building a ton of these, you might want to look for something lower cost. Learn to understand the curve that specifies voltage drop vs current for various gate voltages.

For a simple switch you generally don't need a series gate resistor. But you probably do want a resistor to ground. Otherwise, if your MCU isn't initialized before 12V is applied, you may drift into a linear region and stress the MOSFET.







simulate this circuit &ndash; Schematic created using CircuitLab