how to send serial command via nrf24??

hello guys well i have done a project using geeetech voice recognition module to activate lights using arduino uno using this code :

int led1 = 2; 
int led2 = 3; 

byte com = 0; 

void setup()
{
Serial.begin(9600);
pinMode(led1, OUTPUT); 
pinMode(led2, OUTPUT);
 
delay(2000);
Serial.write(0xAA);
Serial.write(0x37);
delay(1000);
Serial.write(0xAA);
Serial.write(0x21);
}

void loop() 
{
while(Serial.available())
{
com = Serial.read();
switch(com)
{
case 0x11:
digitalWrite (led1, HIGH); //turn on ligh 1
break;
case 0x12:
digitalWrite (led1, LOW); // turn off light 1
break;
case 0x13:
digitalWrite (led2, HIGH); // turn on light 2
break;
case 0x14:
digitalWrite (led2, LOW); // turn off light 2
break;
case 0x15:
digitalWrite (led1, LOW);
digitalWrite (led2, LOW); // turn both lights off
break;
}
}
}

but i want to make a remote using nrf24l01+ modules. can anyone suggest me how to send the serial date from nano (transmitter) to an uno (receiver) wirelessly.

nrf24l01 Is usually interfaced using SPI not serial - so you would need to change the receiver code to match that

J-M-L:
nrf24l01 Is usually interfaced using SPI not serial - so you would need to change the receiver code to match that

the code i have uploaded is the code i used for a simple project without nrf24.
But now i want to try implementing nrf24 in it. Can i get the data in the serial of the voice module, the nao just read and send to uno which will contain the switch case part

Sure you can. Look at basic NRF examples on how to send and receive data

Have a look at this Simple nRF24L01+ Tutorial

...R