 
 void loop() {
   if (dorecored == true) {
+    //startmilis = millis();
     digitalWrite(ledPin, HIGH);
     int microStatus = digitalRead(microPin);
     int nanoStatus  = digitalRead(nanoPin);


  payload._salt = 0;
  payload.devid = DEVICE_ID;

  ads.setGain(GAIN_ONE);
  ads.begin();


    payload.data1 = results * multiplier ;
    payload.data2 = rangeStatus;
    payload.volt = loopcount;
    payload._salt = recordNo ;

    ads.readADC_Differential_0_1_no_delay();
    
    radio.write(&payload, sizeof(payload));
    
    digitalWrite(ledPin, LOW);
    //stopmilis = millis();
    //payload.volt = ( stopmilis - startmilis ) ;
    loopcount++;
  } else {
    digitalWrite(ledPin, LOW);
  }
