night rider trigred by a proximity sensor

I know how to make a night rider led unit but what I want to do is it be trigged by proximity sensor
can any one help , circuit diagram and code needed

If you have the Knight Rider code done you enable it when the sensor is triggered (either a PIR or a distance sensor like. http://www.arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor )