If you want it to work with 2 sensors, you will need to define a second pin to use for the second sensor. You will then have to read both sensors to see if somebody is coming in (sensor 1 then sensor 2 tripped) or going out (sensor 2 tripped then sensor 1).
Write some code and give it a try. Report back if you have trouble. Also, read the sticky post at the top of the forum about how to properly post your code using code tags. It will help people help you.
@kalilinux25 has another thread about the same project. At a glance, I can't tell whether it's a cross-post or not, but certainly it's very similar, and thus has the potential to result in duplicate efforts: https://forum.arduino.cc/index.php?topic=649119
blh64:
You will then have to read both sensors to see if somebody is coming in (sensor 1 then sensor 2 tripped) or going out (sensor 2 tripped then sensor 1).
I started my reply in the other thread along those lines, but then saw that the code the OP posted there (not the same as that here) seemed to have an in-sensor and an out-sensor, like 2 doors.
The code I eventually provided there matches what I thought; one for in and one for out. But blh64 may well be right, I'm not sure.
Seems OP is just blindly throwing code at this until some sticks; I provided code in the other thread since it just seemed the OP was going to flounder and drown. But they need to clarify the issue of how the count actually works. My code may well be wrong (or rather the code is right but my assumption / understanding may be wrong.)