added arduino c code