add original arduino code