Phaseshift analogRead wave

If you just invert the way you are trying to do, then you already have a phase shift.
Because of the slow-ish analogRead, and the slow printing you do after each read.
What frequency are you trying to phase shift.

Tell us more about that 1.5volt that you need.
A 1.5volt PWM signal can be made with a simple voltage divider on the Arduino output.
Leo..