Two-phase measurement using arduino

Being in an overload situation all values will be 1023. What's the point in that?