 unsigned long previousMillis;  //variable for time measurement
 float uSv;            // the measured microSiverts
 float ratio = 151.0; // the divide the cpm by ration to get uSv
+
+static RF24 rf(/*ce*/ 8, /*cs*/ 10);
+static long int address = 0x66996699L;  // So that's 0x0066996699
 
 void tube_impulse(){       //subprocedure for capturing events from Geiger Kit
   counts++;

* USB cable to the computer and upload this sketch. 
*/


#include <SPI.h>
#define LOG_PERIOD 15000  //Logging period in milliseconds, recommended value 15000-60000.
#define MAX_PERIOD 60000  //Maximum logging period without modifying this sketch


    uSv = cpm / ratio ;
    Serial.println(uSv);
    counts = 0;
    
    // send over RF24
    unsigned char buf[7];
    buf[0] = 6;
    buf[1] = 'G';
    buf[2] = 'E';
    buf[3] = 'I';
    buf[4] = 'G';
    buf[5] = (cpm >> 8) & 0xFF;
    buf[6] = (cpm >> 0) & 0xFF;
    rf.write(buf, sizeof(buf));
  }
  
}

