Alternative to a MOSFET ?

The IRF540 is not logic-level, its not suitable for driving from 5V as it won't be fully on. Logic level MOSFETs have Ron characterised at Vgs=4.5V, not 10V. The vast majority of TO220 GETs are not logic-level, note