bidirectional visitor counter using ir sensor