Infared Sensor

So i hear in the FTC universe there is a way to make the infrared sensor we use VERY accurate. Using similar code to what was used in 2007 for the cameras. Does anyone have C code of how you would do this? i looked through our old code and it wasn’t very helpful any ideas?