3rd iPhone Sensor is Another Proximity Sensor
iLounge reveals that Apple has included a second proximity sensor to the iPhone 3G to provide more accurate face-detection. This brings the total number of sensors to three (two proximity sensors, one ambient light sensor).
Apple previously included one proximity sensor near the earpiece of the original iPhone to prevent accidental key presses when the phone was held against your face. By adding a second proximity sensor, Apple is said to have improved this face-detection functionality. As a result of this addition, case manufacturers have increased the size of the opening surrounding the earpiece of the iPhone.
Details of the 3rd sensor had sparked speculation that Apple could have included a front-facing camera to enable video conferencing. No front-faced camera design, however, was announced at WWDC.