How does the built-in motion detection work?

It very simply compares what it sees now to what it saw in the last frame and based on a sensitivity you select will trigger an event. The event can be to send a email, to send a Image to a FTP server, or to send a series of images (before and after the motion is detected) to a email address or a FTP server-all with software built into the camera, nothing else is required.