If rumors are to be believed, the next iPhone will undergo a major revamp and will be offered in 4.7-inch and 5.5-inch sizes. In addition, the latest rumors are now suggesting that the new iPhone will also have sensors to measure air pressure, altitude and temperature.
Based on information from Xcode 6 and iOS 8, the latest iPhone SDK and operating system, the new software clearly includes CoreMotion APIs that reference the new sensors abilities. Further probing also revealed an additional sensor that measures air pressure. An example of the code can be seen in the screenshot above.
Having these sensors make sense as it will play into iOS 8's new indoor positioning capability. It could also play well into Apple's push for fitness-related apps as these sensors can be used to track outdoor activities and provide real-time updates on the weather.
Source: 9to5 Mac