int P=5;
void setup()
{
Serial.begin(9600);
pinMode(P, INPUT);
}
void loop()
{
int S=digitalRead(P);
if(S==HIGH)
Serial.print("motion dected");
}
else
}
Serial.print("motion dected")
}
}int P=5;
void setup()
{
Serial.begin(9600);
pinMode(P, INPUT);
}
void loop()
{
int S=digitalRead(P);
if(S==HIGH)
Serial.print("motion dected");
}
else
}
Serial.print("motion dected")
}
}