Thank you for your answer. If I don't manage to make the mosfet work, I'll probably try using SSR.