Error detection system for optical light guide sensors