Ir sensor cleaning and replacement

I have 7 cm-150 controllers. Their IR sensors give different values. After wiping the front parts a little, there was a little more improvement. But it wasn’t as much as I expected. I want to disassemble and clean or replace the IR sensors. Is there anything you would like to suggest to me?

These IR sensors cannot be relied on to be identical in behavior among themselves or to be linear with respect to the real physical distances. Even objects at the same physical distance but having different colors will result in different digital values obtained in your code. If you record the initial IR value and use it as a baseline value and subtract subsequently IR values against this baseline value. These “normalized” values would be “a little more” consistent to use - but they are still non-linear vis-a-vís the real physical distances.

We should get the same result under the same conditions. But the IR LEFT value of one of my controllers is 300 IR RIGHT 400. The IR LEFT value of another controller is 200 IR RIGHT 400. I think I need to clean or replace the sensors.

For a white background at a distance of 4 cm, a sensor can measure 468 values. The second sensor can give values ​​of 448 or 499 for a white background at a distance of 4 cm. But 200 is too high.

In my previous post I’ve tried to explain that for these types of NIR sensors the physical manufacturing process cannot guarantee that they will behave exactly the same way. Even if you change them out yourself. You will have to develop a separate calibration curve for each sensor.

See this web link for an example of the response curve for this type of sensor