Abstract: A water and energy efficient automatic flushing device is used to control water flow from a water inlet pipe to a flushing conduit of a plumbing fixture, such as a toilet bowl. The automatic flushing device includes an electromagnetic valve unit and a control unit to control opening and closing action of the electromagnetic valve unit. The control unit includes a programmed central processing unit (CPU), a transmitter circuit, a detecting unit to detect the presence of a person using the plumbing fixture, a receiver circuit and a valve control circuit. The valve control circuit opens the valve unit to initiate a first flushing action after confirming that the plumbing fixture is in use, and to initiate a second flushing action after verifying that the person using the plumbing fixture has departed. The receiver circuit can distinguish if a received signal was reflected by a person using the plumbing fixture or by a hand that was placed directly in front of the detecting unit.