my example is in the console because I cannot reproduce your code with Aurdino. Use
e.g. line 25 should be
if you want to remove these, use strip(), e.g.
decode()
e.g. line 25 should be
print(valueRead.decode())note thar you will get 2 new lines after each printed value because of
\r\n
if you want to remove these, use strip(), e.g.
valueRead.decode().strip()
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs