The basic sequence of this system is as follows. The left emitter is turned on, a reading is taken from the proximity sensor, the left emitter is turned off, the right emitter turns on, a reading is taken. Repeat this many times a second, and compare the signal strength. If the signal strength or number of counts from the proximity sensor is stronger with the right emitter, the hand is moving from the right to left.