The optical path of the optical amplifier is guided by the optical fiber. The optical signal transmitted by the cast part is reflected, refracted and blocked by the measured object, and the light surface is changed. The light receiving part of the amplifier detects the change of the optical signal through the internal circuit conversion to generate the corresponding output signal, which has the characteristics of non-contact detection, diversity of detection methods and wide application scenarios.