How a CMOS sensor works | ScratchStats