 					updateThingSpeak(sendCount);
 					lastSend = millis();
 					Serial.println("Done");
-					return sendCount;
 				}
 				periodCount = 0;
 			}

				soundFeedback(reject);
				Serial.print(messages.cancel);
				sendCount = (millis() - startTime)/1000;
				while(1) {
					if (sendCount > minCount) {
						Serial.println(sendCount);
					}
          else {
            Serial.println(0);
          }
				}
				return sendCount;
			}
		}
		else {

		// record the previous state
		lastPeriodX = periodX;
		lastPeriodY = periodY;
    
		delay(pollInterval);
	}
}
