Make a graph plz help

what does it say when you put
println(val);
behind this?

that will print what processing gets from the arduino, perhaps something wrong happens there.