You are reading a single comment by @d0773d and its replies. Click here to read the full conversation.
  • e.data != "\r" || e.data != "\n"
    

    That was exactly the issue. I read the sensor module user guide again, it explained the results will end in a "\r". So I removed the checking for the newline character. As soon as I removed the newline check and only checked for a CR:

    if (e.data != "\r")
    

    It worked. When I get home from work I will implement your example.

About

Avatar for d0773d @d0773d started