PIR sensors are the wrong kind of sensors for this project.
What would happen in someone wandered near the first sensor, and then wandered away, without ever going near the second sensor?
How would you keep the relatively large range of sensor one from extending past that of sensor two?
What if someone is entering while someone else is leaving?
i tried a lot to make code on this but the delay of sensor cant make it work properly ..!!
But, you showed none of it. If the delay is consistent (that is, there is a 3 second delay after a person is detected by either sensor before the Arduino becomes aware of it), the delay doesn't matter.
If the delay from one sensor is not the same as the delay from the other sensor (but both are consistent), the delays can be negated (i.e. you can determine the time that each sensor actually fired) and the actual order still can be determined.
If the delays are not consistent, start again at the top.