I am using a circuit nearly identical to the one used in this question by Dyte. My version is pictured below:
I am powering the solenoid (water valve) with 12v, using a RFP30N06LE MOSFET (datasheet), and using a NodeMCU (3v3 logic) to drive it.
What I can't figure out is why the MOSFET drives the solenoid fine when I connect the gate to 5v, but not at all when I connect it to 3v3. I've measured the voltage between the drain and source when it's connected, and I am seeing 12v, so it seems that it should turn on the valve.
Is there another MOSFET I should be using, or something else that is wrong with my circuit?