Running an Arduino Mosfet IRF520 continuously with 2A

Hi.

I have recently purchased an Arduino Mosfet IRF520 that is rated for 1A, but I plan on running approximately 2.5A on it(will install heatsink!).

Are they safe to operate for days? I plan on using it in an Escape Room to dim 4 x 2-3W 12VDC light bulbs. The program I've designed with dim the lights on random occations, but mostly will have it fully on.

It works right now, but is making a humming noise while dimming. I've heard it might be due to some EM-field. It does not get hot at all.

If not advisable, do you have any other ideas for other products that might work for me for this rather specific purpose?

Have a great day!

The IRF520 is not a logic level MOSFET. You can drive the gate with a pin from your arduino (+5V) but the MOSFET will not be fully turned on

The IRF520 needs a gate voltage of 10V to be fully turned on.

You should be using a logic level MOSFET, like this one.