I am really sorry to annoy you with this probably easy problem, but I just can't figure it out.
So I got a machine who by now has a manual switch triggered by hand to do some action. The switch is connected to a Digital Input Module which does everything further and controlling the machine. Simplified, the manual switch would be the like this:
The switch is going to be automated by using an arduino and it would be triggered with a rather low frequency of about 1-2 Hz. I don't know anything else about the machines Digital Input Module, only that the current will be 200mA max.
I thought about getting the IRF520 board (I know about the "problem" with the gate voltage) and so to speak replace the manual switch with a MOSFET. My suggestion would be this:
However I am not sure if this would work, usually I saw MOSFETs switching GND and not the whole voltage, and I don't know where my "load" is, which typically also would be placed "above" the drain of the MOSFET.
Any help would be very appreciated, even if it's just "better use a relay". Thank you! :)