Direction Detection Staircase lighting

Can anyone help me out to do this project as in the video? In this project, TOF laser sensor can accurately know the direction and number of people on both sides of the stairs through the algorithm. This will allow you to calculate the number of people on the stairs and also know the direction of the first person to enter (and the last to leave).

There is also a post made regarding this which was in 2020 but it was not finished.

please watch it .