Here’s Maya reading real-time input from an Arduino board, set up in the circuit from the Arduino Button tutorial, and assuming the environment setup from my first Arduino post:
I’ve tweaked the code for the video to make the readout easier to see.
Code follows: