Hook the photosensor to the T0CK pin of the micro... Set the timer to increase on the T0ck input ( In the datasheet ) Wait 1 second and read the timer.... Calculate the speed and put it on the LCD..
We Have no idea what you know... Do you know C or basic? Can you build it? Skeletal programs for simple counters are easy to pick up on the net.... There are several in my tutorials.... I have an article on Interrupts..
Help us to help you.... Fill in the blanks.....