 
 // main loop
 void loop(void){
-  if (sensorcount)
-  {
-    // update sensor array  
-    sensors.requestTemperatures();    
-    for (int devidx = 0; devidx < sensorcount; devidx++)
+  if (sensorcountA || sensorcountB)
+  {
+    // update 1-wire A 
+    sensorsA.requestTemperatures();    
+    for (int devidx = 0; devidx < sensorcountA; devidx++)
     {
       String output;
       char outbuf[31];

      delay(2000);
          
      // build the output string as addr:temp.xx
      output = getAddr(onewire_addresses[devidx]);
      output += ":";
      float tempf = getTempF(onewire_addresses[devidx]);
      dtostrf(tempf, 3, 2, floatbuf);
      output = output + String(floatbuf);
      Serial.println(output);

  float temp;
} Reading;

// 1-wire busses on arduino D7 and D8 
#define ONE_WIRE_BUS_A 7
#define ONE_WIRE_BUS_B 8
#define TEMPERATURE_PRECISION 9

// Setup two oneWire instances
OneWire oneWireA(ONE_WIRE_BUS_A);
OneWire oneWireB(ONE_WIRE_BUS_B);
DallasTemperature sensorsA(&oneWireA);
DallasTemperature sensorsB(&oneWireB);
DeviceAddress onewire_addressesA[10];
DeviceAddress onewire_addressesB[10];
int sensorcountA = 0;
int sensorcountB = 0;

// Hardware configuration: Set up nRF24L01 radio on SPI bus plus pins 9 & 10 
// ghpi rf24remote boards have ce and csn reversed so use 10 & 9
RF24 radio(10,9);

byte rf_addresses[][6] = {"1Node","2Node"};
