Isolated Inputs and Outputs for Marble run

thanks,

the wire is not to long only about 500mm, it is unshielded, there may or may not be external interference as this unit is going in public space (inside a bus shelter)

i do have some small 0.1uf ceramic caps on hand that would physically fit if you think this would be advisable?

Photos etc i can do but not until after it goes live on the 16th.