Sending 100 via nrf24L01 received as 32512

Transmitter:
#include "nRF24L01.h" //NRF24L01 library created by TMRh20 https://github.com/TMRh20/RF24
#include "RF24.h"
#include "SPI.h"
RF24 radio(7,8); // NRF24L01 used SPI pins + Pin 9 and 10 on the NANO
typedef struct{
int X;
}
Payload;
Payload SentMessage;
const uint64_t pipe = 0xE6E6E6E6E6E6; // Needs to be the same for communicating between 2 NRF24L01
void setup(void){
Serial.begin(115200);
radio.begin(); // Start the NRF24L01
radio.openWritingPipe(pipe); // Get NRF24L01 ready to transmit
radio.stopListening();
}

void loop(void){
SentMessage.X = 111;
radio.write( &SentMessage, sizeof(SentMessage));
}

Receiver:
#include "nRF24L01.h" // NRF24L01 library created by TMRh20 https://github.com/TMRh20/RF24
#include "RF24.h"
#include "SPI.h"
int LED_PIN = 4;
RF24 radio(7,8); // NRF24L01 used SPI pins + Pin 9 and 10 on the UNO
typedef struct{
int X;
}
Payload1;
Payload1 ReceivedMessage;

const uint64_t pipe = 0xE6E6E6E6E6E6; // Needs to be the same for communicating between 2 NRF24L01

void setup(void){
radio.begin(); // Start the NRF24L01
Serial.begin(115200);
radio.openReadingPipe(1,pipe); // Get NRF24L01 ready to receive
radio.startListening(); // Listen to see if information received
pinMode(LED_PIN, OUTPUT); // Set RGB Stick UNO pin to an OUTPUT
}

void loop(void){

while (radio.available())
{
radio.read( &ReceivedMessage, sizeof(ReceivedMessage) );
int receivedData = ReceivedMessage.X;
Serial.println(receivedData);
}
}

To make it easy for people to help you please modify your post and use the code button </> so your code looks like this and is easy to copy to a text editor. See How to use the Forum

Also please use the AutoFormat tool in the IDE to indent the code properly before posting it.

As it stands I can’t make sense of your programs.

Have a look at this Simple nRF24L01+ Tutorial

…R