Code and circuitry to use an accelerometer as a 3d printer auto-leveling probe detector to signal z axis min end stop