You can't turn off the proximity sensor on your iPhone, but if it's malfunctioning, try force-restarting your iPhone and ...
The Ring doorbell works by allowing you to see who's at your door whenever there's motion detected, even if you're not home.