The blue floor reflects blue light.
The white line reflects all colours.
If you use a red filter over the photo-detector then it will be very sensitive to the red from the white line and not sensitive to the blue floor. Use a red LED, not a blue LED. Also don't use an ordinary white LED because it doesn't have any red.