Refactor for INPUT_PULLUP. LOW signal turns on MOSFET. Modified timer variables for readabillity. Sometimes optimisation can be a hinderance :-).