Add code to poll RA6 and read input