I am using Gyroscope to determine my ipad is perpendicular (attitude of 88 to 92 degree) or not . if it is then can take picture. I have something like a traffic light red o