More info would be good. How you are describing "sensor" seems like an ABL, so is it BLTouch, EZABL, Kava Lite, something else? Which main board, original, BTT Mini 1.2, something else?

If it is a BLTouch, have you confirmed that it is wired correctly? I had to swap 2 wires when installing BLTouch 3.1 on SKR Mini E3 1.2 on my Ender 3.
https://kay3d.com/pages/the-correct-...gure-a-bltouch

I like Cheetah 5.0 for my Ender 3 because there are only 15 sections I need to touch, then compile, and the instructions are clear.
https://kay3d.com/pages/editing-and-...al-studio-code