Read from GPIO input pin