   payload._salt = 0;
   payload.devid = DEVICE_ID;
 
+  ads.setGain(GAIN_ONE);
+  ads.begin();
+
+  for (int k = 0; k < 10; k = k + 1) {
+    if (k % 2 == 0) {
+      digitalWrite(ledPin, HIGH);
+    }
+    else {
+      digitalWrite(ledPin, LOW);
+    }
+    delay(100);
+  }
+
   sleepNow();
 }
 
-
 void loop() {
+
+  unsigned long startmilis = millis();
   digitalWrite(ledPin, HIGH);
 
-  int microStatus = digitalRead(microPin);
-  int nanoStatus  = digitalRead(nanoPin);
-
-  rangeStatus = microStatus << 1;
-  rangeStatus = rangeStatus + nanoStatus;
-
-  Serial.print("counterForloop : ");
+  if ( checkRangenow == true ) {
+
+    int microStatus = digitalRead(microPin);
+    int nanoStatus  = digitalRead(nanoPin);
+
+    rangeStatus = microStatus << 1;
+    rangeStatus = rangeStatus + nanoStatus;
+
+    checkRangenow = false;
+  }
+
+  int16_t results;
+  float multiplier = 0.125F;
+  results = ads.readADC_Differential_0_1();
+
+  Serial.print("  noOfWakeup : ");
+  Serial.print(noOfWake);
+  Serial.print(" - counterForloop : ");
   Serial.print(counterForloop);
   Serial.print(" - rangeStatus : ");
-  Serial.println(rangeStatus);
-
-  if (counterForloop > (counterForloop_old + 10)) {
-    checkBttn();
+  Serial.print(rangeStatus);
+  Serial.print(" - results : ");
+  Serial.print(results * multiplier);
+  Serial.println(" mA");
+
+  if (counterForloop > (counterForloop_old + 100)) {
+    checkRecordBttn();
   }
 
-
-  // milli
-  // micro
-  // nano
-
-
-
-  /*
-    unsigned long startmilis = millis();
-
-    payload._salt++;
-    payload.data1 = 10 ;
-    payload.volt = readVcc();
-
-    radio.powerUp();
-    radio.write(&payload , sizeof(payload));
-    radio.powerDown();
-
-    unsigned long stopmilis = millis();
-
-    payload.data2 = ( stopmilis - startmilis ) * 10 ;
-  */
+  // milli  1
+  // micro  3
+  // nano   2
+
+
+  payload._salt = noOfWake ;
+  payload.data1 = results * multiplier ;
+  payload.volt = readVcc();
+
+  radioSend();
+
+  unsigned long stopmilis = millis();
+
+  payload.data2 = ( stopmilis - startmilis ) * 10 ;
+
   digitalWrite(ledPin, LOW);
   counterForloop++;
-  delay(100);
+  //delay(30);
+  
+}
+
+void radioSend() {
+  /*
+  radio.powerUp();
+  radio.write(&payload , sizeof(payload));
+  radio.powerDown();
+  */
+  Serial.print("_salt : ");
+  Serial.print(payload._salt);
+  Serial.print(" - data1 : ");
+  Serial.print(payload.data1);
+  Serial.print(" - data2 : ");
+  Serial.print(payload.data2);
+  Serial.print(" - volt : ");
+  Serial.print(payload.volt);  
 }
 
 int readVcc() {

const int ledPin    = 14;

int rangeStatus;

unsigned long counterForloop;
volatile unsigned long counterForloop_old;

void wakeUp() {
  counterForloop_old = counterForloop;
  detachInterrupt(digitalPinToInterrupt(2));
}

void sleepNow() {
  digitalWrite(ledPin, LOW);
  attachInterrupt(digitalPinToInterrupt(2), wakeUp, FALLING);
  LowPower.powerDown(SLEEP_FOREVER, ADC_OFF, BOD_OFF);
}

void checkBttn() {
  attachInterrupt(digitalPinToInterrupt(2), sleepNow, FALLING);
}


  rangeStatus = microStatus << 1;
  rangeStatus = rangeStatus + nanoStatus;

  noOfWake = 0;
  counterForloop = 0;
  checkRangenow = false;

  // radio
  radio.begin();
