PIR Sensor Question

Almost certainly no, except for those rare occasions when "SENSOR==1"
Why don't you post your whole sketch?
Any reason for using an analogue pin and not a digital one?