What is the legality of surveillance in your own home?

Can you answer Maggie’s question about Surveillance?:

If you have a surveillance camera that has a microphone hooked up in your own home for not only surveillance but as a webcam (meaning it can be accessed through the internet if you have all the passwords etc.). Is there anything illegal about that since it is recording non-stop? We have it in our basement/den because we usually keep our garages open in the summer and a flimsy door won’t stop someone from breaking in but it also records everything else that occurs in our basement/ den area including the going abouts of the family and any guests who come over. Is there anything illegal about that? I am pretty sure there is not since it is our own home but this is to settle a bet with a friend. Thanks!
Most of our frequent guests and family know about it and it’s difficult to turn it off and then reboot everything all over again. But they are aware of it and think it’s a good idea.

Spy Surveillance Equipment