How can I check if pin A0 is LOW or HIGH

No problem.
Which one did you end up using?