Drive IRFZ44N Mosfet with 2N2222 NPN Transistor from ESP8266
You can add another transistor as an inverter.
Also, for IRFZ44, as opposed to IRLZ44, you should have the pullup to +12.



simulate this circuit &ndash; Schematic created using CircuitLab