It is just a thin piece of plastic on the carriage (the part that has the bushings and rides on the rail...) that goes into the sensor - the way I solved my 0031 issue was to take the two torx size 10 screws holding the sensor housing (the white plastic part) - pop the sensor (the black part) out of the housing, it just clips into place - then I folded up a piece of tin foil (paper would probably be a better choice - less chance of a short) and put it behind the sensor to move it out a little bit, and only attached it back into the white plastic housing by the bottom clip... you can check if it is plugged in good when you do this too. Then I reinstalled the sensor and housing and it worked! Not very scientific, but after that fix I have managed to print out both the demo key chain and star vase and spent what seemed like a couple of hours calibrating the base - it only threw the 0031 code once, so I repeated the adjustment on the sensor and it ran fine... makes me think I one of my first new designs should be a better sensor holder...
not certain it will work for you, but here is hoping - oh, and if you haven't done it already, popping the plastic side panel off is easy, you just work a flat blade screwdriver under the edge (I start at the front) until it lifts over the catch - there's about six of them you have to release, then it just lifts off...
look at me, an XZY owner for less than a week and already giving advice
Jeff