Updated arduino file to use println and prevent double sending