What is the science behind motion detectors?

Motion detectors emit a beam (or beams) of Infra-Red light - which is invisible to the naked eye. This is reflected back to the detector by solid objects in the area. So long as the beam returns, the detector remains in a 'ready' state. However, if the beams are disturbed by anyone passing through them - they don't return to the detector - which triggers the alarm.