Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Your device seems to use a line-oriented protocol, where each message ends with a CR and/or LF character. The first thing you should do is make sure you buffer the input in order to process one line at a time. See Reading Serial on the Arduino, by Majenko. Once you have this sorted out, follow chrisl's advice. Commented Jul 24, 2020 at 12:39
  • see arduino.stackexchange.com/questions/1013/… Commented Jul 24, 2020 at 16:46