I'm no expert, but I read elsewhere that the interrupt "pinmode()" should use a pull up/down resister so that an open (unattached) pin does not generate random values. I'm just now debugging a bunch of other problems with the example sketches...not all problems are in the sketches. Some problems are in the core cpp code. I hope to share them when I sort it out.