Digital Pin stuck high when using < 5V

Sounds like a bad mosfet or it’s incorrectly wired. Mosfet type?

In general, if the mosfet came from eBay, anything is possible. Semiconductors from China are like the prizes in a box of Cracker Jax, you never know what you’re going to get.