adding Arduino code to examples