I had the same problem as Atri Basu above, and flushing the earpiece with compressed air fixed the problem. With Settings set to turn off screen during calls, I made a call, the screen turned off, I held out the phone away from me, and the screen turned on again. Proximity sensor is working...