Laser filament sensor for 3D printer, without change firmware