read analog voltage at pin A0