I have downloaded a code to Arduino that reads a LDR sensor and prints out 1 or 2 on the serial monitor. But when I try to read the Arduino serial port in processing it's just random number like this:
13
10
50
30
....
Could someone help me and maybe see what I've done wrong? I want to get either 1 or 2 in Processing as I get in the serial monitor in Arduino.