Add updated master arduino code