The optical sensor IC PR5401 consists of two pairs of photodiodes placed in opposite quadrants with differential amplifiers. If illuminated uniformly, the output is Vcc/2, but depends on the balance of illumination on each pair.