How does the G-Sensor Work?

For example in Iphone. I would like to know how the G-Sensor works. Please leave me a link or links for further reading. Thank You.
2 answers 2