How does an optical mouse detect movement?
An optical mouse detects movement using a light-emitting diode (LED) and a sensor. The LED illuminates the surface beneath the mouse, and the sensor captures the reflected light to track the movement of the mouse, translating it into cursor movement on the screen.