Here are a couple of tips for copying this sketch from here. If there are any quotes(“) remove them and introduce keyboard quotes(“). The quotes(“) from web pages are smart quotes and dont format to arduino IDE.
Also when it complains about a stray/342, remove minus(-) sign and the spaces and then put the minus back in. That should clean up the errors.