How to trigger a bar code scanner with a motion sensor?

How about an ultrasonic or IR sensor that causes a servo to fire up and move a magnet over the existing magnetic sensor.

Very Heath Robinson, but cool.