fix gpio read value