Changed the read pin to the Analog pin