Identifying/ignoring parts by sensing at different wavelengths