   sensorState = digitalRead(sensorPin);
 
   if (sensorState == HIGH) {
-    
     if ( logState == 0 ) {
       Serial.println("Sensor sees something");
       logState = 1;


// Animation Function
void animate() {
  Serial.println('waiting ' + animationDelay + 'ms before animating');
  delay(animationDelay);
  Serial.println('activating relay for ' + activationPeriod + 'ms');
  on(relayPin);
  delay(activationPeriod);
  Serial.println("deactivating relay");

/**
* Copyright 2018 Rotting Orchards
*
* Generic single sensor prop controller
*
