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