Why does my laptop camera disappear sometimes?

One time I would be using it on Skype and stuff and then the next time, the camera cannot be detected. Then it will work again later and not work again after. Why does it keep doing this? It's been like this ever since I got. (Last school year)