Switching +12V from NodeMCU GPIO

Best to use high side switching for controlling active circuits. Pololu makes this easy with their Power Switches.