added arduino test code