 int cnt, val_min, val_max, diff;
 
 // global vars for accumulated noise measures
-int acc_max, acc_sum, acc_cnt, samples_cnt;
+int acc_max, acc_sum, acc_cnt, samples_cnt, calibration_cnt;
 long acc_start;
 
 // global vars for calibration

  diff_min = 0;

  // reset number of samples sent
  samples_cnt = 0;  
}

// reset variables for raw noise measurments

  acc_cnt = 0;
  acc_sum = 0;
  acc_max = 0;
  acc_start = millis();
}

// update variables for raw noise measurments
