URGENT ! Question for connecting a light barrier

I would use something like:

Blue to Arduino ground
Brown to +12v
Black through 10K resistor to Arduino pin
6.8K resistor from Arduino pin to ground