I figured out that I did something wrong in my Arduino IDE code. The last sentence that I wrote was print.serial. But it had to be println.serial. Apperantly this was needed because I was reading the data in processing until there would be another line. (/u)