int pir = 2;
int a =14;
void setup()
{
pinMode(pir, INPUT);
Serial.begin(115200);
}
void loop()
{
a = digitalRead(pir);
Serial.println(a);
if(a==HIGH)
{
Serial.println("kit kat");
delay(100);
}
if(a==LOW)
{
Serial.println("kit kat");
delay(100);
}
}