سلام بله حواسم بود که هیچ پایه ای مشترک نباشه.
این کد مربوط به سنسور PIR هست.
int pir=2;

void setup() {

Serial.begin(9600);

}

void loop() {
int sens=digitalRead(pir);
if(sens==HIGH)
{
Serial.println("HARKAT");
}
else
{
Serial.println("HARKAT NEMIKONAD");
}
delay(200);
}