Some laptops and portable devices have a privacy shutter that prevents your camera from showing anything while it’s closed. Make sure your privacy shutter is open.
Also, some cameras have a button that turns the camera on or off. When it’s turned off, your device won't recognize that a camera is installed. If your computer has a physical switch or button, make sure it's turned on before using your camera.
Did that fix your problem?