simple motion sensor

I need not analogWrite(). can do that only with digitalWrite?

const int sensorPin = A0; // pin that the sensor is attached to
const int sensorPin = A1;
const int sensorPin = A2;

const int ledPin = 9;
const int ledPin2 = 8;
const int ledPin3 = 7;
const int ledPinMain = 6;

??????????