A low-cost, compact electro-optical leveler, using a CMOS image sensor, has been developed for level measurement. The two-lens optical system is designed to find the tilt information for the total system. ZEMAX is used to design and predict the performanc