Depending on environment used, you might go for optocoupler, resistor + diode to VDD, resistor + zener to GND... just to name a few. You have some options. Optos would be where your moteino ground is not the same as "on the other side" or you could expect large differences between what you measure and you input pin. You could do mix options from above for different pins.