The sensor-based sorting machine can identify plastic, paper, glass and other recyclable materials in MSW by using a special optical system or a high-resolution camera; the sorting equipment uses reflected or transmitted visible light (VIS), near infrared (NIR) light source, and artificial intelligence, can realize the sorting of different materials according to the different materials and colors of the garbage.