     }
     // In this sample we use the second sector,
     // that is: sector #1, covering block #4 up to and including block #7
-    byte sector         = 1;
     byte blockAddr      = 4;
     byte trailerBlock   = 7;
     MFRC522::StatusCode status;

      case 9: if (tc >= 2003 && tc <= 2100) off(); else on(); break;
      case 10: if (tc >= 1003 && tc <= 1100) off(); else on(); break;
      case 11: if (tc >= 1503 && tc <= 1600) off(); else on(); break;
      case 12: if (tc >= 0503 && tc <= 0600 || tc >= 5500) off(); else on(); break;
      case 13: off(); break;
      case 14: if (tc >= 0000 && tc <= 2000) off(); else on(); break;
      case 15: if (tc >= 0503 && tc <= 0630) off(); else on(); break;
      case 16: if (tc >= 0003 && tc <= 0100 || tc >= 5003 && tc <= 5100) off(); else on(); break;
      case 17: if (tc >= 1000 && tc <= 2000) off(); else on(); break;
      case 18: if (tc >= 5000) off(); else on(); break;
      case 20: if (tc >= 2003 && tc <= 2100) off(); else on(); break;

    }
  }
  if (atCard) {
    if (no522) { Serial.println(F("DS12(0,0,'NFC\xC4\xA3\xBF\xE9\xB9\xCA\xD5\xCF',1);")); mainLoop++; return; }
    // Look for new cards
    if (!mfrc522.PICC_IsNewCardPresent()) { mainLoop++; return; }
    if (!mfrc522.PICC_ReadCardSerial()) { mainLoop++; return; }
