title: start reading incoming data from a serial port, using pyserial, when a specific character appears
body: <p>I'm trying to read incoming data from a weight scale (Lexus Matrix One). I want the code to start reading the 8 characters after <code>=</code> appears.</p>
  
  <p>The problem is that sometimes the code does that, and other times it starts reading the data at the middle of the measurement sent by the scale, making it impossible to read properly. I'm using the <code>pyserial</code> module on python 3 on windows. </p>
  
  <pre><code>import serial
  ser=serial.Serial("COM4", baudrate=9600)
  a=0
  while a&lt;10:
    b=ser.read(8)
    a=a+1
    print(b)
  </code></pre>
  
  <p>the expected result is: <code>b'= 0004.0'</code></p>
  
  <p>but sometimes I get: <code>b'4.0= 000'</code></p>