This video will help you implement Mosfet as a switch. You can implement on proteus and actual circuit.
We have interfaced DC Motor to explain how switching works. We can use any other peripherals.
Check out the working of Mosfet as a switch at https://elexfocus.com/mosfet-switch-h...