Two-phase measurement using arduino

You can't use 10k resistor as current limiter into A1. Current limiting is a not working idea. Make sure the volrage never exceeds 5 volt.