Maybe you just need to slow down the sampling a bit, perhaps with a delay(50) (aargh ) at the end of the loop() function.