Using Xbee S1 to communicate between two arduinos.

  Serial.println(val);

Have you tried

  Serial.print(val);

?

Don