My robot was acting strangly so I've run a debug on the IR sensor and the value is really high, like it's constantly seeing something in front of it, nothing I do seems to influence the reading. I've taken it apart and re-wired but can't figure out whats going on. Can anyone advise?
Do you know if the sensor is still in good working order?
You should be able to check it by using a digital camera. If you aim the sensor at a digital camera, you should see a blue/violet/grey light. If that is the case, you at least know the IR LED part of the sensor is still functioning.