Only returning a portion of the data from xbee

I am trying to send data from a MaxSonar EZ0 through xbee on one arduino to another and displaying the data on the other xbee on a parallax 2x16. I’ve debugged the output data from the arduino with the sonar sensor and it shows the values ranging from 0-255 as it should; but, on the other arduino the display shows only 0-5 and even then that seems to not be clear. I’ve tried different baud-rates (though i haven’t truly changed the personal baud-rates of the each arduino) in the code for the lcd screen and for the xbees. I would like to see what im receiving but as you may know i cannot debug because the USB and the xbee share the same pins. (not to self, i could store data and view it later ). Anyways here’s the code and if needed i can upload pictures of the two arduinos. The first is the calibration example and tweaked a bit for this.

const int sensorPin = A0;    // pin that the sensor is attached to
const int ledPin = 9;        // pin that the LED is attached to

// variables:
int sensorValue = 0;         // the sensor value
int sensorMin = 1023;        // minimum sensor value
int sensorMax = 0;           // maximum sensor value

void setup() {
  // turn on LED to signal the start of the calibration period:
  pinMode(13, OUTPUT);
  digitalWrite(13, HIGH);

  // calibrate during the first five seconds
  while (millis() < 5000) {
    sensorValue = analogRead(sensorPin);

    // record the maximum sensor value
    if (sensorValue > sensorMax) {
      sensorMax = sensorValue;

    // record the minimum sensor value
    if (sensorValue < sensorMin) {
      sensorMin = sensorValue;

  // signal the end of the calibration period
  digitalWrite(13, LOW);

void loop() {
  // read the sensor:
  sensorValue = analogRead(sensorPin);

  // apply the calibration to the sensor reading
  sensorValue = map(sensorValue, sensorMin, sensorMax, 0, 255);

  // in case the sensor value is outside the range seen during calibration
  sensorValue = constrain(sensorValue, 0, 255);

  // fade the LED using the calibrated value:
  analogWrite(ledPin, sensorValue);
 // Serial.println("Sonar= ");
 // Serial.print(18);

Receiving end:

int SensorData;      // a variable to read incoming serial data into
#include <SoftwareSerial.h>

SoftwareSerial LCD(10, 11); // RX, TX

void setup() {
  // initialize serial communication:
  LCD.write(17);        // ASCII codes are commands for the lcd to turn on backlight 
  LCD.write(12);        //clear screen and wait for it to clear 


void loop() {
  // see if there's incoming serial data:
  if (Serial.available() > 0) {
    // read the oldest byte in the serial buffer:
    SensorData =;
    // if it's a capital H (ASCII 72), turn on the LED:
   // LCD.write("value= ");
   LCD.write(128);     //carriage return

Thank you very much