       String message = client.readString();
   }
 
-  val = digitalRead(pirPin);
+  val = digitalRead(irPin);
   Serial.println(val);
 
 if (val == HIGH){

BIoTEthernetClient client;

int ledPin = 13;
int pirPin = 6;
int val = 0;
bool pirState = LOW;

void setup() 
{

    Serial.println("connected");

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