I’d switch also via an opto isolator too, to keep the 30v away from the Arduino , helps with noise suppression too