Photo Reflector SY-CR102

Should this be connected to a digital input or an analogue input?

Do you have a link to the datasheet of the sensor?

Please see below link to product.

Thank you

check - -

Seems you need to make a voltage divider ...==> analog

Thank you, I would like to use one of these to make a kind of bar code reader, would it be suitable?