An optical sensor for an instrument to form a closed-loop curing instrument that is configured to manage the quantity of delivered energy to a curable material, including a composite restoration for a tooth. The closed-loop curing instrument is configured to analyze a signal indicative of the light reflecting from the curable material, and to adjust light output based on the analysis.