MOVED: My Mosfet is not working or my code is messed up

This topic has been moved to General Electronics.

http://forum.arduino.cc/index.php?topic=547471.0