Trouble with IRF520

If you are trying to control the Arduino power, that circuit is incorrect in several different ways.

Use a "high side switch" with a P-channel MOSFET. This forum post might be helpful.