Added read value from pin