Help with coding please

https://www.circuito.io/app?components=9442,9939,11021,250754,417986,485906

This is my project. I dont know to code for the sequence i need. I would like the arduino board to run the motor at the same time detct its rpm using the line tracing follower and display the rpm on the i2c lcd display.