A previously reported CMOS-compatible dual avalanche photodiode design is exploited to develop a maximum-likelihood spectral-sensing algorithm, which maps the dual photocurrents to the monochromatic light’s wavelength. Optimization over the reverse biases of the two APDs yields a spectral resolution of 10 nm within 440-650 nm.