What is the best way to buffer input signals

Hello all,

Working out the final details of my security project. Just wondering what is the best way to reduce a 12 - 14 volt input to the five volt needed by the input pins?

Many thanks.

Probably the “best” way would be to use opto couplers.

The easiest way is to use a voltage divider.

I depends on how noise immune you need to be, length of wire to the switches or whatever, the environment, how many inputs there are etc.