Hi, my machine spindle does not stop during spindle orientation ( prior to tool change or M19 )

*SOLVED*
loose proxymity sensor connector