Reducing voltage to AnalogPin

But a optoisolator powered with the reduced voltage is a much simpler solution. and cheaper.

That will not work because the transfere function of an opto is very non linear.

Not sure that other suggestion will work either cair to draw a schematic of it so we can see?