Your device is good and working in the online webcam test, there is a problem with the Windows camera application, try with another app and download the standard camera application.
I too facing the same error, so I installed a different webcam that is working, This happened due to the last two Windows updates.