opto-coupler: transistor vs logic

I tend toward your assessment, G_M.

[I was wondering about a 4.7k-10K for the pull-up and adding a 0.1uF from the input pin (at/near the Arduino) to Gnd.]