rfid and ir integration

i m trying to automate one trolley.the trolley should start on detecting a known rfid tag .the trolley also contains ir sensors to avoid obstacles.but rfid and ir codes are not being integrated

kanchhan.ino (2.18 KB)

but rfid and ir codes are not being integrated

What does that mean? The code you posted does something, but you didn't tell us what that is.

You want the code to do something, but you didn't tell us what that is.