The iPhone beeps when its magnetometer, in the upper right of the phone, is near metal. Stud Find is an iPhone application that uses the device's built-in magnetometer to find metal studs, screws, nails and anything metallic in a wall. The iPhone's three-axis magnetometer is an instrument that measures magnetic forces.