In Windows 10, the Camera not working is usually due to the faulty drivers. To fix the issue:
Option 1: Replace the Device Driver
- Win + X > Device Manager.
- Expand Imaging Devices > click on Update Driver Software.
- Browse my computer > Let me pick from a list.
- USB Video Device > Next.
The camera should work with the generic device driver.