I found if the filament sensor is locked in place all dynamic stuff will mess up the simple sensor. let your filament sensor float and but up against some stop while extruding and fall back while retracting, and you'll be much better off.