SPI interface with other board_AVR_ESK1100 or among Arduino itself

Sir,

I am using two Arduino board, from one board I am able to send the data which is available on oscilloscope.
But when I read from another board, it is not able to read.

 byte ReadByte(void) {
 
  while(!(SPSR & (1<<SPIF))) 
    return SPDR;
}
void loop() {
   
      int rxData;
     digitalWrite(spidata,LOW);
      rxData = ReadByte();
      Serial.println("Read value ");
     Serial.println(rxData, DEC);
      digitalWrite(spidata,HIGH);

}

Sir, this read function is returning 0.
Please suggest something.