problem with commnunicating arduino with processing (both sending and receiving)

hello Paul,

I dont think the problem is '1' or 1. I changed the value like u said, however it is still not working.

the processing is printing 0 when it hits the boundary and 3 when it is not. the problem is the arduino just cannot receive the 3 sent from processing....