pinMode(A0, INPUT); // ch0 (PIR Sensor)
pinMode(digitalPin, INPUT); // ch1 (PIR Sensor)
Why such disparate names for nearly identical meanings?
Why is one PIR sensor connected to a digital pin and one connected to an analog pin?
Why are you using the wrong kind of sensors?