What is that "little guy" called?
but what he's made of is two infrared distance sensors. measures ingress and egress.
1 sensor... ingress = movement into one area out of an adjacent area. Simultaneously, that counts as an egress (that person having moved out of that adjacent area into the next).