help sending data to another arduno using NRF24L01

I have 3 temp sensors on Arduino with the following code

#include <OneWire.h>
#include <DallasTemperature.h>
#include <Wire.h>
#include <SPI.h>
#include <nRF24L01.h>
#include <printf.h>
#include <RF24.h>
#include <RF24Network.h>


// Data wire is plugged into digital pin 9 on the Arduino
#define ONE_WIRE_BUS 9

// Setup a oneWire instance to communicate with any OneWire device
OneWire oneWire(ONE_WIRE_BUS);  

// Pass oneWire reference to DallasTemperature library
DallasTemperature sensors(&oneWire);
// Addresses of 3 DS18B20s
uint8_t sensor1[8] = { 0x28, 0xAA, 0xD8, 0x06, 0x48, 0x14, 0x01, 0x79 };
uint8_t sensor2[8] = { 0x28, 0xAA, 0xCA, 0x14, 0x48, 0x14, 0x01, 0xB9 };
uint8_t sensor3[8] = { 0x28, 0xAA, 0x97, 0x1D, 0x48, 0x14, 0x01, 0x53 };


int deviceCount = 3;
float Pool;
float Heater;
float Outside;

// nRF24L01(+) radio attached  (CE, CSN)
RF24 radio(7,8);

// Network uses that radio
RF24Network network(radio);
// Channel of our node
const uint16_t channel = 90;
// Address of our node
const uint16_t this_node = 1;
// Address of the other node
const uint16_t other_node = 0;

// How many packets have we sent already
unsigned long packets_sent;

// Structure of our payload, limited to 32 bytes
struct payload_t      // 32 bytes max

{
  unsigned long counter;  // 4 bytes
  char Pool;        // 4 bytes
  char Heater;        // 4 bytes
  char Outside;        // 4 bytes
};

void setup(void)
{
  sensors.begin();  // Start up the library
  Serial.begin(9600);
  SPI.begin();
  radio.begin();
  radio.setPALevel(RF24_PA_MAX);
  network.begin(channel, this_node);

  // Power down the radio. Note that the radio will get powered back up on the next write() call.
  radio.powerDown();
  delay(2000);
}

void loop(void)
{
  
  sensors.requestTemperatures();
  
  Serial.print("Pool: ");
  printTemperature(sensor1);
  delay(5000);
  
  Serial.print("Heater: ");
  printTemperature(sensor2);
  delay(5000);
  
  
  Serial.print("Outside: ");
  printTemperature(sensor3);
  delay(5000);
  Serial.println();
  
}

void printTemperature(DeviceAddress deviceAddress)
{
  float tempC = sensors.getTempC(deviceAddress);
  Serial.print(tempC);
  Serial.println(" C");
}

and i need to send the serial output to another Arduino using the NRF24LO1

my serial output from the tranmitter is

07:29:39.069 -> Pool: 16.75 C
07:29:44.075 -> Heater: 16.56 C
07:29:49.099 -> Outside: 15.94 C

and i need to send that data to the other Arduino with the rf receiver

i have tried all sorts of examples but not getting the right results

Have a look at this Simple nRF24L01+ Tutorial.

Wireless problems can be very difficult to debug so get the wireless part working on its own before you start adding any other features.

The examples are as simple as I could make them and they have worked for other Forum members. If you get stuck it will be easier to help with code that I am familiar with. Start by getting the first example to work

...R

mikewitney:
i have tried all sorts of examples but not getting the right results

It always helps if you explain clearly what you tried and what exact results you did get.