 BIoTEthernetClient client;
 
 int ledPin = 13;
-int pirPin = 6;
+int irPin = 6;
 int val = 0;
-bool pirState = LOW;
+bool irState = LOW;
 
 void setup() 
 {

      String message = client.readString();
  }

  val = digitalRead(pirPin);
  Serial.println(val);

if (val == HIGH){

    Serial.println("connected");

  pinMode (ledPin,OUTPUT);
  pinMode (irPin, INPUT);
}
}
void loop () 
