, pySerial, serial.read() , 255. Arduino , , serial.readline().
Unless you have specific performance requirements, sending strings from Arduino will make debugging much easier.
Also, if you are returning rows from Arduino, your test should be if int(value) > 400:
source
share