Power supply to Arduino

" The relay has to be what ever voltage rail you want to drive it from. This could be 5V or could be 12v. Either way you will need to drive the relay with a transistor."

I think in that way you can protect the inputs.