Meet the Intermatic IOS-CMP-U Occupancy Sensor: a simple device that can detect occupancy and ambient light levels in your home. When occupancy is detected, the lighting or device will automatically turn on. The device automatically turns off when no one is in your room. You can set the timer from 15 seconds to 30 minutes. Sets you back $50.
More gadgets like this: here