Changed analog pins to digital