An electrosurgical system includes an electrosurgical generator, an electrosurgical instrument, an optical clarity sensor and a control component. The electrosurgical generator generates electrosurgical energy for use during electrosurgery. The electrosurgical instrument is coupled to the electrosurgical generator and treats tissue. The optical clarity sensor is coupled to the electrosurgical generator and is adapted to measure tissue with at least two optical frequencies. The control component is operatively coupled to the optical clarity sensor and receives sensor data therefrom. The control component communicates control instructions to the electrosurgical generator to control the generation of the electrosurgical energy.