My PIR Sensor is not working with arduino

My PIR sensor is not Working with Arduino uno and Nano. But it is Working Normally when we connect the sensor without Arduino it is working well. When we are connected to Arduino it always shows the high Value the value is not changing.

// code is


const int sensor = 2;
void setup() {
  pinMode(sensor, INPUT);
  Serial.begin(9600);
}

void loop() {
  int value = digitalRead(sensor);
  if (value == 1) {
    Serial.println(value);
    delay(2000);
  }
  else {
    Serial.println(value);
    delay(2000);
  }
}

Hello
Post the schematic.
My crystal ball is in the dish washer .

Don't you know that crystal is not dishwasher safe?
You might have made the haze permanent.
Leo..

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.