I would throw the old sensor back on and then run the limit position initialization. As long as that runs successfully, you should be good to go. If it doesn't work, the sensor is probably bad and you just need to find one that works. Sensors can go bad even when the light works.