This document describes research on using an ultrasonic sensor for obstacle detection on a micro air vehicle (MAV). The ultrasonic sensor is connected to an Arduino Uno board to measure distances up to 4 meters. An algorithm is developed to detect obstacles and control the MAV servos to avoid collisions. The ultrasonic sensor and Arduino board connection is tested, with distances accurately detected through the serial monitor up to 3.15 meters. The ultrasonic sensor provides effective obstacle detection for indoor and outdoor MAV applications.