A sun sensor is a navigational instrument used by spacecraft to detect the position of the sun. Sun sensors are used for attitude control, solar array pointing, gyro updating, and fail-safe recovery. A sun sensor is a navigational instrument used by spacecraft to detect the position of the sun. Sun sensors are used for attitude control, solar array pointing, gyro updating, and fail-safe recovery. In addition to spacecraft, sun sensors find use in ground-based weather stations and sun-tracking systems, and aerial vehicles including balloons and UAVs. There are various types of sun sensors, which differ in their technology and performance characteristics. Sun presence sensors provide a binary output, indicating when the sun is within the sensor's field of view. Analog and digital sun sensors, in contrast, indicate the angle of the sun by continuous and discrete signal outputs, respectively. In typical sun sensors, a thin slit at the top of a rectangular chamber allows a line of light to fall on an array of photodetector cells at the bottom of the chamber. A voltage is induced in these cells, which is registered electronically. By orienting two sensors perpendicular to each other, the direction of the sun can be fully determined. Often, multiple sensors will share processing electronics.