 				elapsedTime = calculateTime(startTime);
 
 				// Any valid accumulated time will be returned
-				if (pulseCount > minCount) {
+				if (startTime > 0) {
           			return elapsedTime;
 				}
 				else {

				if (startTime == 0) {
					startTime = millis();
				}
			}
		}
		// if periodX and periodY IS NOT a valid pair

		}

		// record the previous state
		//lastPeriodX = periodX;
		//lastPeriodY = periodY;
		signals[i] = inRange(periodX, periodY);
		i++;

