Here are some tips to help you protect yourself from webcam and microphone hacking:
Cover the webcam and microphone when not in use.
Only use secure VPN services.
Review the privacy settings on all your devices.
Download anti-malware and anti-virus protection.
Keep software and operating systems up-to-date.