This project deals with the design and development of an optoelectronic sensor system and its possible use in online applications. Average surface roughness is estimated between 0.025 and 0.8 μm through a light scattering technique. Specular reflectivity was measured at an incident angle of 60°. A carrier-frequency system using an electronically modulated LED light source was implemented to improve the noise rejection of the system.