 		}
 
 		// if periodX and periodY IS a valid pair
-		if ( inRange(periodX, periodY) ) {
+		if ( signals[i] == 1 ) {
 			// a job is detected when we get 3 valid signals in a row
 			// begin stopwatch
 			if (checkHistory(signals) == flag.detectedJobStart) {

	unsigned int sum = periodX + periodY;

	if (0 < sum && sum <= maximumValue) {
		delay(debounce);
		return 1;
	}
	else {
		delay(debounce);
		return 0;
	}
}

			}
		}

		if (i == sampleSize - 1) {
			i = 0;
		}
    else {
      i += 1;
    }
		delay(pollInterval);
	}
}
