A method for monitoring the quality of yarn (2) by an electronic cleaner (1) of yarn by means of an optical detector (5) comprising a sensor (4) with one or two rows of individual optical elements (41, 42) which are rectangular-shaped and have analog outputs, each of the optical elements comprising a photodiode and an amplifier of its output signal. The amplifier has a variable amplification, whose size is modified according to the required sensitivity of a respective optical element (41, 42) to light. The invention also relates to a sensor (4) of an optical detector (5) for monitoring the quality of yarn (2) by an electronic cleaner (1) of yarn (2) comprising one or two rows of individual optical elements (41, 42), whereby each optical element (41, 42) comprises a photodiode and an amplifier of its output signal which has adjustable amplification.
展开▼