transfer sensor data between two NRF24L01

Hello

I am doing project to send sensor data from one arduino pro min to another using NRF24L01. here i have three sensors. two sensor data will be sent when they are active. another sensor will be always active and i want to send this data every 2 hours once.

Is this possible? can someone help me with some references.

here is my code. here button 2 data i have to send very 2 hours once.

#include <SPI.h>
#include <RF24.h>
#include <nRF24L01.h>

int msg[1];
RF24 radio(9,10);//check your pin number on RF24 github check you have the right
//pin for the arduino you're using. this pin number is diffrent for diffrent arduino models.

const uint64_t pipe = 0xF0F0F0F0D2L;
int buttonPin1 = 7;
int buttonPin2 = 6;
int buttonPin3 = 5;
int buttonState1 = 0;
int buttonState2 = 0;
int buttonState3 = 0;

void setup(void)
{
  Serial.begin(38400);
  radio.begin();
  radio.openWritingPipe(pipe);
  pinMode(buttonPin1, INPUT);
  pinMode(buttonPin2, INPUT);
  pinMode(buttonPin3, INPUT);
}

void loop(void)
{
  buttonState1 = digitalRead(buttonPin1);
  buttonState2 = digitalRead(buttonPin2);
  buttonState3 = digitalRead(buttonPin3);
  
  if (buttonState1 == HIGH)
  {
    msg[0] = 111;
    radio.write(msg, 1);
  }
  if (buttonState2 == HIGH)
  {
    msg[0] = 222;
    radio.write(msg, 1);
  }
  if (buttonState3 == HIGH)
  {
    msg[0] = 212;
    radio.write(msg, 1);
  }  
}

can some please tell me what changes i should do in the code. can we do with delay?

This is one way you could try quite simple, There may be a better way but this is how I do it

  unsigned long Send_data = 72000UL * 60; //add the * 60 back in
 unsigned long lastUpdate = 0; // Keep track of last update time

void setup() {
  // put your setup code here, to run once:

}

void loop() {

 
 
 
 if (millis() > (lastUpdate + Send_data))
    {
      //send data and reapeat every 2 hours
      lastUpdate = millis();
    }
  


}

i copied your program and it worked! do you know how to add a BMP280 to the code? I can wire up easily enough, but joining these codes for n SD card is too hard for me on my own. I want to put the whole package into a rocket to log acceleration, altitude etc. also, can i ascertain velocity using the xyx data alone?
hoping you can help.