I know that this has been discussed at length here in the forum. However I have been having this error today and found a "workaround" that seems to work fine.
Simply put what I did was: First make sure that the sensor was reading correctly which it was. A reading around 156 with my hand or a piece of wood. Then I took a piece of fine sandpaper and lightly marred the finish of both the glide plate and the squaring plate. I only did about an inch on each plate right below where the sensor crosses them. This makes the plates less reflective. That way when the infrared signal hits these areas it will not bounce back as much of a signal. But when it passes over the board edge the signal will rise greatly and the computer can then detect the board edge better. I think that if the plates (in this crossover area) were painted a flat black( at the factory) it would greatly improve the accuracy of the sensor.
I work in industrial electronics and with infrared sensors quite often.
In no way am I suggesting you should paint these areas yourself. If you don't know what you are doing you could severely damage your machine.