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. http://www.maplin.co.uk/photo-reflector-sy-cr102-12709
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?