PIR Sensor Question

Analogue 2. I wrote that because if I didn't, the keyboard I hacked would act as if the key was pressed down constantly. It's sorta complicated with the relay and the way the PIR stays high for two seconds. I don't think that portion of the code is causing the false readings.