     Serial.println("connected");
 
   pinMode (ledPin,OUTPUT);
-  pinMode (pirPin, INPUT);
+  pinMode (irPin, INPUT);
 }
 }
 void loop () 

      String message = client.readString();
  }

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

if (val == HIGH){

BIoTEthernetClient client;

int ledPin = 13;
int irPin = 6;
int val = 0;
bool irState = LOW;

void setup() 
{
