Device that measures reflectivity to allow following a line