I am dealing with the Rohm RPR-0521RS sensor. The value for "Proximity" is not clear to me. In the examples "count far" or "count near" is used as the unit, what does that mean?
I have 3 measurements as an example:
----- No object in front of sensor -------- Proximity = 3 [count] Far
Ambient Light = 874.99 [ix]
----- Object with appr. 20 mm distance ---- Proximity = 402 [count] Far
Ambient Light = 341.59 [ix]
----- Object with appr. 4 mm distance ---- Proximity = 3409 [count] Near
Ambient Light = 31.23 [ix]
From the absolutely minimal data sheet, the sensor reports a number proportional to the amount of IR light reflected from the object in its detection field.
That amount would obviously depend on the distance to the object as well as the size and IR reflectivity of the object.
Why did you pick this part for your project, if you did not already understand what it does?
To jremington: Your question is valid, but there are many ways how to get a sensor. I got a "Festo Bionic Flower" from a friend to play with. This sensor is installed there and of course you get curious. But I can live with it if the value of "proximity" remains unknown.