Hello, I'm in need of assistance, I am trying to make a simple alarm with a PIR sensor and a passive buzzer, the wiring is perfectly fine, but for whatever reason, the sensor is always reading HIGH because as soon as the warmup timer finishes, the buzzer (which I named screech) is continually going, I verified this by changing the code to beeping when the sensor =low and it wouldn't beep, anyways, enough rambling, here is my code
int eye = 3;
int screech = 13;
int j;
int eyeread;
void setup() {
Serial.begin(9600);
pinMode(screech, OUTPUT);
pinMode(eye, INPUT);
digitalWrite(screech, LOW);
}
after the 60 second warmup timer(j=60), it reads the sensor, if the sensor reads something it sets the buzzer off, the problem is the sensor is always reading HIGH, thusly setting the buzzer off after the countdown, screech is wired with a ground line and a wire to pin 13. Its a question of do i have the sensor programming wrong or am I wiring it wrong