Try to search for "arduino line follower" with your favorit search engine - there are a lot of advices for hardware and code.
Try to search for "arduino line follower" with your favorit search engine - there are a lot of advices for hardware and code.