Electronic automatic flushes solve the problems of previous approaches, and are common in new installations. A passive infrared sensor identifies when the urinal has been used, by detecting when someone has stood in front of it and moved away, and then activates the flush.