If you just want to read the 12V signal with a 5V Arduino, a simple voltage divider will drop the 12V to a suitable level.