Audomatic Garage Door Close

Ok, changed it so that the calibration runs in setup - this was easy per recommendations I just did:

for (PIRCalTime = 0; PIRCalTime < 40; PIRCalTime++) {
    Calibrate(); // run the Calibrate function
  }

I also cleaned up the redundant if == true statements as suggested.

I know I got off to a rough start but thanks for all of you for your help. I've learned a lot. Appreciate your time.

v2.3.txt (10.4 KB)