Rf24 temp Tx with nano unknown freeze

Hi I am trying to make Temp Tx with arduino nano and Rasp Pi4b.

Nano Tx is operated by 18650*2 batteries.
Temp sensor is ds18b20 and ssd1306 display for local worker can check the temp immediately by pushing button.
nrf24l01 is pa lna chinese clone and attatched with regulating adapter.

I've needed power saving codes, so I used watchdog timer and avr sleep.
When power up Nano_Tx check the temp and write the pipe, shows display and sleep.
It will be sleep for 5minutes and wake up.
If someone pushes the button.
Nano_Tx wake up without 5min term check temp- write pipe -display.

It was successful to receive and store it to db.
I made 4 Nano_Txs and it works fine at the first time
I monitored the data but some errors came out.

○ Some errors

  1. Tx_3 stopped 6pm and started transmitting at 8am next morning. don't know why(I think you guys also don't know about this...)
  2. I shutdowned Raspberry pi and move it to other place, after powered on none of Txs transmit, I turned off and on all Txs then it worked again.
  3. Tx 3 and 4 sometimes transmit with 10min term, I thought there might be a transmission failure at the first 5minutes.
  4. Tx 4 rf24 often freeze. But after pushing button Tx works. I saw oled shows temperature during the period but no data received at Rasp.

I am now trying to add capicitor at nrf24l01 or connect it directly to main 18650*2 battery because it is attatched at regulator adapter.
Before that I want to ask you If there are any problems of my code and any suggestions to im
rove/optimize.

It's my first time writing a code.
I've searched web and helped from GPT.
Please check my code and let me learn from you.
Thanks.

#include <RF24.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <avr/sleep.h>
#include <avr/wdt.h>
#define OLED_RESET 4
#define ONE_WIRE_BUS 5

const int wakeUpPin = 2; // pin of interrupt 0
Adafruit_SSD1306 display(OLED_RESET);
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
RF24 radio(9, 10); //CE, SS
struct Payload {
  uint8_t nodeNum;
  float temp;
};

volatile int isInterrupted = 0;

ISR(WDT_vect) {
}

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200); //
  sensors.begin();
  radio.begin(); //
  radio.setChannel(0x4c);
  radio.setPALevel(RF24_PA_LOW);
  radio.openWritingPipe(0xb3b4b5b6f1LL);
  radio.setPayloadSize(32);
  radio.enableDynamicPayloads();
  pinMode(wakeUpPin, INPUT_PULLUP);
  
}
int i;
void loop() {
  sensorTransmit();
  delay(500);
  for (i = 0; i <=34; i++)
  {  
    myWatchdogEnable (0b100001);  // 8 seconds
  }

}

void sensorTransmit() {
  Payload payload;
  payload.nodeNum = 1;
  sensors.requestTemperatures();
  payload.temp = sensors.getTempCByIndex(0);
  radio.write(&payload, sizeof(payload));
  delay(1000);
  display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  display.clearDisplay();
  display.setTextSize(3);
  display.setTextColor(WHITE);
  display.setCursor(0,0);
  display.print(payload.temp, 1);
  display.setTextSize(1);
  display.print(" ");
  display.cp437(true);      // code page 437
  display.setTextSize(2);
  display.write(167);       // character 167 is degree
  display.setTextSize(3);
  display.println("C");
  display.display();    // for the changes to make effect
  display.clearDisplay();
  delay(3000);
  display.ssd1306_command(SSD1306_DISPLAYOFF);
  
}

void myWatchdogEnable(const byte interval) 
  {  
  attachInterrupt(0, wakeUp, LOW);   // LOW, HIGH, RISING, FALLING, CHANGE
  MCUSR = 0;                          // reset various flags
  WDTCSR |= 0b00011000;               // see docs, set WDCE, WDE
  WDTCSR =  0b01000000 | interval;    // set WDIE, and appropriate delay

  wdt_reset();
  set_sleep_mode (SLEEP_MODE_PWR_DOWN);  
  sleep_mode();            // now goes to Sleep and waits for the interrupt
  sleep_disable();                   // wake up here

  detachInterrupt(0); 
  } 


void wakeUp() {
}

Post an annotated schematic, be sure to show all connections, power, ground, and power sources. Post links to technical information on the modules. This sounds like both a hardware and software problems.

This is the default setting, you can just drop it.

The parameter type is deprecated.

The first line is the default, you can just drop it,
the second line changes that setting anyway.

Many programmers would be interested in the result/success of that operation,
maybe to retry more than the standard 15 times.

Thank you for your reply
I found out the nrf24l01 had problems
After I change the module it worked great
Thanks again