You can't turn off the proximity sensor on your iPhone, but if it's malfunctioning, try force-restarting your iPhone and ...
You can test your webcam using online tools or programs that come with Windows 10 or your Mac computer.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results