How much distance from the object to sensor is to be active?
Indoor or outside?
Lighting considerations? Full sun light, mostly shadows?
Artificial lighting? Flourecent, arc, HID
Acoustic considerations?
Don't think you want/need to disable the microcontroller (unless maybe its a PIC
). You can have a loop constantly checking the state of an input pin, or have it trigger an interupt when the pin changes state (good for bringing the MCU out of power saving (SLEEP) mode).
Modulated IR is good for short distance and low light. As reflective, less than 3 feet. Break beam, maybe 20 feet.
PIR is good for around 40 feet, but bright light confuses it.
Ultrasonic... no experience or reading, been kind of expensive to consider in the past.