updated most recent arduino code