New to processing---------motion tracking

he reads one of two values so he is reading wrong one

to recieve 2 different coordinates to drive 2 motors

arduino.write(closestX);
    arduino.write(closestY);