When I checked, I found that there was a switch at the top of my computer that could open or close the lens. I pushed the switch to the left.
Since the computer was new, I noticed a tiny tag at the top that was covering the lens, so I removed that also
Now my camera is working
Hope this helps.