IR sesnor

Hello! My IR sensor f-51 is detecting obstacle but not detecting black line. Kindly help!