Two-phase measurement using arduino

Okey. Come back with replies when You feel like.