 * USB cable to the computer and upload this sketch. 
 */
 
+#include <RF24.h>
+#include <nRF24L01.h>
+#include <RF24_config.h>
 
 #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
 

  Serial.begin(9600);
  attachInterrupt(0, tube_impulse, FALLING); //define external interrupts 
  
}

void loop(){                                 //main cycle

    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));
  }
  
}

