With two light barriers closely positioned one after the other it is possible to establish in which direction they have been crossed. If, for example, you place it at the entrance of the toilet then ...