If your iPhone is showing a black screen that never goes away, you should try resetting it or putting it into recovery mode.
You can't turn off the proximity sensor on your iPhone, but if it's malfunctioning, try force-restarting your iPhone and ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results