Blacken the middle of the sensor or just cover a black tape on the sensor. http://www.ecever.com/blog/iphone-4-proximity-sensor-working/
open