Contact sensors attach to doors and windows to detect if it has been opened or closed. A motion sensor simply detects movement in its field of view. Both Philips Hue contact sensors and motion sensors can be used to trigger your lights.
Read more about motion sensors