added gpio read pin