Added example with sampling from an external GPIO pin