Better serial arduino code