I have a controller with sinking inputs ( should be grounded to activate) , I will use the system in a noisy environment, I want to protect these inputs from EMI and voltage spikes, what is the best way to do that ? optocoupler ? LPF ? Schmitt triggers? any advice will be appreciated