added arduino test code from Kyle