My proximity sensor was an issue like many of you so I "reset all settings"
Just like many if you I now have to enter a passcode immediately with no option to set a longer time. I called apple about the sensor and they sent me a brand new phone the next day. Restoring it didn't help the passcode issue and the sensor still acts the same. So... Getting a new phone solved absolutely nothing.