A motion sensor is an electronic device that detects physical movement in a given area, often used for security, automation, and interactive media applications.