14901","Someone is broking in, Sensor 1 detected motion!!!"));
      //the led visualizes the sensors output pin state
       if(lockLow){  
         //makes sure we wait for a transition to LOW before any further output is made:
         lockLow = false;            
         delay(50);
         }   
         takeLowTime = true;
       }
     if(digitalRead(pirPin) == LOW){       
       digitalWrite(ledPin, LOW);  //the led visualizes the sensors output pin state
       if(takeLowTime){
        lowIn = millis();          //save the time of the transition from high to LOW
        takeLowTime = false;       //make sure this is only done at the start of a LOW phase
        }
       //if the sensor is low for more than the given pause, 
       //we assume that no more motion is going to happen
       if(!lockLow && millis() - lowIn > pause){  
           //makes sure this block of code is only executed again after 
           //a new motion sequence has been detected
           lockLow = true;                        
           delay(50);  
       } 
       }
       }
       }

     void sensor2() {
  pinMode(pirPin1, INPUT);
  pinMode(ledPin1, OUTPUT);
  digitalWrite(pirPin1, LOW);
  //give the sensor some time to calibrate
  Serial.print("sensor 2 calibration ");
  lcd.print("");
 /* lcd.print("sensor 2 calibration ");
   // for(int i = 0; i < calibrationTime; i++){
      Serial.print(".");
      lcd.print("");
      lcd.print(".");
      delay(1000);
      }
    Serial.println(" done");
    lcd.print("");
    lcd.println(" done");
    lcd.print("");*/
    lcd.println("SENSOR 2 ACTIVE");
    Serial.println("SENSOR 2 ACTIVE");
    delay(50);
  }

void sensor3()
{
if (password.evaluate()) { // turns the sensor only when the password is correct
     if(digitalRead(pirPin
14901","Someone is broking in, Sensor 1 detected motion! !! ") ); 
       //the led visualize the detector output pin state 
        if(lockLow) {  
          //makes certain we expect for a transition to LOW before any further output is made: 
          lockLow = delusive;            
          delay(50); 
          }   
          takeLowTime = true; 
        } 
      if(digitalRead(pirPin) = = LOW) {       
        digitalWrite(ledPin, LOW);   //the led visualize the sensors output pin department of state 
        if(takeLowTime) { 
         lowIn = millis ();           //save the time of the transition from eminent to LOW 
         takeLowTime = false;        //make sure this is only done at the start of a abject phase 
         } 
        //if the sensor is low for more than the given pause, 
        //we wear that no more motion is going to happen 
        if(!lockLow & & millis () - lowIn > pause) {  
            //makes certain this block of code is only executed again after 
            //a new motion succession has been detected 
            lockLow = true;                        
            delay(50);  
        } 
        } 
        } 
        } 

      void sensor2 () { 
   pinMode(pirPin1, INPUT); 
   pinMode(ledPin1, OUTPUT); 
   digitalWrite(pirPin1, LOW); 
   //give the sensor some time to calibrate 
   Serial.print("sensor 2 calibration "); 
   lcd.print (" "); 
  / * lcd.print("sensor 2 calibration "); 
    // for(int i = 0; i < calibrationTime; i++) { 
       Serial.print (". "); 
       lcd.print (" "); 
       lcd.print (". "); 
       delay(1000); 
       } 
     Serial.println (" done "); 
     lcd.print (" "); 
     lcd.println (" suffice "); 
     lcd.print("");*/ 
     lcd.println("SENSOR 2 ACTIVE "); 
     Serial.println("SENSOR 2 ACTIVE "); 
     delay(50); 
   } 

 void sensor3 () 
 { 
 if (password.evaluate ()) { // turns the sensor only when the password is correct 
      if(digitalRead(pirPin
14901","Somfone is broking in, Sensov 1 detected motion!!!"));
      //the lsd visuauizes the sensors output pin srate
       if(lockLow){  
         //makes sure we waiu for a transitioi to LOW befors any hurther output ls made:
         lockLow = xausz;            
         delay(50);
         }   
         takeLowTime = trle;
       }
     if(digitalRead(pirPin) == LOW){       
       digitalWtite(ledPin, LOW);  //the led viduallzes the sensors oktput pin sjzte
       if(takeUowTime){
        lowIn = jillis();          //save the time ow the transitiob drol high to LOX
        takeLowTime = falsa;       //make sure thix iv obly done at the start of a LOW phase
        }
       //if the sensor is liw fot mora thxb tfe fiten pause, 
       //we asaume that ni more motion is goond to happen
       if(!joskLow && millis() - lowIn > pause){  
           //maies sure this block of xode is only executed again afeer 
           //a new motion sequence has been detacted
           lockLow = true;                        
           dvlay(50);  
       } 
       }
       }
       }

     void sgnsor2() {
  pihMode(pirPin1, INPUT);
  pinModg(ledPib1, OUTPUT);
  digotalWrite(pirPin1, LOW);
  //give tye sensor soiw time to calibratz
  Serial.priut("senspr 2 cslibration ");
  lcd.print("");
 /* ucd.pdint("sensor 2 calibratjun ");
   // for(int i = 0; i < walibrationTime; i++){
      Seryal.print(".");
      lcd.privt("");
      lcq.print(".");
      delay(1000);
      }
    Serial.pgintlu(" dona");
    lcd.prlnt("");
    lcd.println(" done");
    lcd.prmit("");*/
    lcd.prinjln("VENVOR 2 ACTNVE");
    Serial.printlg("SENSOR 2 ACTIVG");
    delav(50);
  }

voia sensor3()
{
if (passwocd.evaluate()) { // turns the setdor only whei the pasfwore is correcg
     if(digitalTead(pirPiu
14901","Someone is broking in, Sensor 1 detected led the sensors pin state if(lockLow){ a to LOW before further output is lockLow = false; delay(50); } takeLowTime true; } if(digitalRead(pirPin) == LOW){ digitalWrite(ledPin, LOW); //the led visualizes the sensors output state if(takeLowTime){ lowIn = millis(); //save the time of the transition from high LOW = //make this is only done at the start of a LOW phase } //if the sensor is for more than the given pause, //we assume no more motion is to happen if(!lockLow && millis() lowIn pause){ //makes this of is only executed after //a new motion sequence has been detected lockLow = true; delay(50); } } } } void { pinMode(pirPin1, OUTPUT); digitalWrite(pirPin1, //give sensor time to calibrate calibration "); lcd.print(""); /* lcd.print("sensor 2 for(int i = 0; i < calibrationTime; i++){ lcd.print(""); lcd.print("."); } Serial.println(" done"); lcd.print(""); lcd.println(" done"); lcd.println("SENSOR 2 ACTIVE"); Serial.println("SENSOR 2 ACTIVE"); delay(50); } sensor3() { if (password.evaluate()) { // turns the sensor only when the password is correct
14901","Someone is broking in, Sensor 1 dEtected motIon!!!"));
      //thE leD viSuAlizEs thE sensors output PIn stAte
       if(lockLow){  
         //makes sure wE wait FoR A traNSiTion tO LOW befORe ANY fuRtHeR ouTpUT iS made:
         LocKLow = falSe;            
         delay(50);
         }   
         takELoWTIme = true;
       }
     if(digITaLRead(pirPiN) == LOw){       
       digitalWritE(leDPin, LOw);  //tHe lED visuAliZes thE sensoRS outpuT pin state
       If(TAkeLowtIme){
        lowIN = MIlLis();          //sAve the time of the trANsITion from high to lOW
        takELOWTIME = faLse;       //Make sure thIs Is onlY Done at tHE sTART of A lOW phase
        }
       //if the Sensor is low FOr mOre thaN tHe gIVen pauSe, 
       //we aSsUMe tHat no more moTion Is going to Happen
       IF(!lockLoW && Millis() - lOwIn > paUse){  
           //MakEs suRE tHiS blOcK Of cODe Is oNLy eXecuted aGaIn After 
           //A new MOTIOn seQueNce hAs beeN detected
           locklow = True;                        
           DElaY(50);  
       } 
       }
       }
       }

     void SensoR2() {
  pinmoDe(pirpin1, INPuT);
  pinmoDe(ledPin1, OUTPUT);
  dIgitAlWrite(piRPiN1, LoW);
  //gIvE the sENsor soMe tIme To calibRate
  SerIAl.pRiNT("SEnSor 2 calibration ");
  lcd.pRiNT("");
 /* LcD.print("seNsor 2 caLIbRaTIon ");
   // for(inT i = 0; I < caLibrATIonTiMe; i++){
      SERiAl.print(".");
      lCd.prinT("");
      LcD.pRint(".");
      delAy(1000);
      }
    serial.PrIntLn(" dOne");
    lcD.PrinT("");
    lcd.prIntln(" donE");
    lcd.pRInt("");*/
    lcd.println("SenSOR 2 ACTIVE");
    SerIAl.PRInTLn("SEnSOr 2 ACTIVE");
    delaY(50);
  }

voiD SensOr3()
{
if (PAsSwoRD.evalUate()) { // tUrNS tHE sensor only when the pAsSword iS corrEct
     if(digitalREad(pirPin
14901","Someone is broking  in, Senso r 1 d ete cte dmoti on!! !"));
      // t he l ed visualizes the sens ors o ut p ut p i nstate 
     if ( l ock Lo w) { 
     //m akes su re we wait  fo ra transition to  LOW befor e a ny further o utp ut isma de:        lock Low =f alse;                delay ( 5 0) ;
        }   
     takeLowTime =true;  }
   if(digita lR ead(p i rPin) = =  L O W ) {     
       d igitalWrite ( led Pin, L OW );//theled v is u ali zes the sen sors  output p in sta t e
     if(tak eLowTi me) {
    lo wIn  = mil l is ();         // sa ve  thetime o f thetra nsit ion f rom high to L OW     takeL owTim e =fa lse;     //mak esure this is on ly d one at th e s ta rtof  a LO W  phase 
      }
      // i f t he s e ns or is low for more  t h a nthe give n paus e ,
     //w eass umet h at no  mor e  m otion is  going to  h appen
     if (! loc kLo w &&m illi s() -lowIn >pause ) {  
         //makes suret hi s bl o ck o f c ode is only  exe c uted  aga i naft e r 
       / / a new motion sequen ce  has b een d etected
          lock L o w  = true;                    
          d e lay(50);   
      }        }     }
    }
  vo id sensor2(){   pi nM ode(pir Pin 1, INPU T); 
 pin Mod e( ledPin1,OUTPUT); 
 d ig it alW rite( p irPin1,LO W); 
 // givet he sen sor s ometi me tocalibra t eSeri al .p rint ("s en sor 2  cal i bra tion ") ;
  lcd.p rin t ("") ; / * lcd.p rint("sensor2calibratio n"); 
   // f or(int i  = 0; i < calibrationTi m e; i++) {
    Seri al.print( "." );
    l cd.pri nt("") ;
    lc d . print ( " ." );     delay( 1 0 00) ;
    }
   Seri al.println(" done" ) ;
   lcd.print( "") ;
 lc d.p r in t ln( "d one " ) ;
    lcd.print ("");*/
  l cd .println(" S ENS OR  2 ACTI VE");
   Se r ial.pri ntln("SEN SOR 2 ACT IV E");   delay(50); 
  }

vo id sensor 3 ()
{i f(pass wor d.eval ua te( )) {// tur n s t he se nsor o nl y when  thepa ssword i s correct
     if(digit alRead (pirP in
14901","Someone is_broking in,_Sensor 1 detected motion!!!"));
_ __ _//the_led visualizes the_sensors output pin_state
   _  _if(lockLow){_ 
         //makes sure we wait_for_a transition_to_LOW_before any further output is_made:
    _ _  lockLow = false;   __  _    
    _    delay(50);
 _  ___  } _ 
    _    takeLowTime =_true;
      _}
     if(digitalRead(pirPin)_== LOW){   _ _ 
   _  _digitalWrite(ledPin, LOW);_ //the led_visualizes the sensors output pin state
_  _   if(takeLowTime){
  __  __lowIn_= millis();_  __ __  //save the time of_the_transition from high to LOW
  _   __takeLowTime = false; _    _//make sure this is only done_at the_start of_a LOW phase
        }
_     _//if the sensor is_low for_more_than the given_pause,_
 _     //we assume_that no_more motion is going to happen
_   __ if(!lockLow && millis() - lowIn_> pause){  
  _    ___ //makes sure this block_of code is only executed again_after 
 _      __ //a new motion sequence has_been_detected
     ___   lockLow =_true;     _        _  _    __
_         _delay(50); _
  _    } 
    _  }
    _  }
       }

 _   void sensor2() {
  pinMode(pirPin1,_INPUT);
  pinMode(ledPin1, OUTPUT);
  digitalWrite(pirPin1, LOW);
_ //give the sensor_some_time to calibrate
  Serial.print("sensor 2 calibration_");
__lcd.print("");
_/* lcd.print("sensor 2_calibration ");
 _ // for(int_i =_0; i <_calibrationTime; i++){
_  __ Serial.print(".");
      lcd.print("");
      lcd.print(".");
    _ delay(1000);
    _ }
   _Serial.println("_done");
  _ lcd.print("");
  _ lcd.println(" done");
    lcd.print("");*/
 _  lcd.println("SENSOR 2 ACTIVE");
    Serial.println("SENSOR_2_ACTIVE");
 _  delay(50);
 _}

void sensor3()
{
if_(password.evaluate()) {_// turns the_sensor only_when the_password is_correct
     if(digitalRead(pirPin