The TCRT5000 reflects IR off a surface and detects contrast between black tape and white ground for line following.