if it works in some positions and in others not I doubt that the sensor is defective

maybe glass thickness (or material), metal parts or electromagnetic fields are different