A thin film structure for an optical sensor to achieve a wavelength window with nearly ripple free reflection and transmission has different areas of thin film with two or more different thicknesses.