pls post me with ir sensor speed measurement code

pls help me with a code

That's not the way it works. You post your non-working code, and we help you understand why it doesn't work, and how to fix it.