A method of operating vehicle lights, the method comprising: determining a speed of the vehicle, providing a light sensor, wherein a capacitive light sensor configured to sense a presence and intensity of light over three wavelengths, each said wavelength being respectively associated with first, second, and third output channels of the light sensor; filling a buffer with data from the output channels, the buffer being filled with a predetermined number of data points at a predetermined frequency; the method being characterized by further comprising: detecting an edge change in the data in the buffer, wherein the edge change is detected, when the data passes from a high value to a low value through a first predefined threshold, and/or when the data passes from a low value to a high value through a second predefined threshold; maintaining an on/off state of the vehicle lights when an edge change is not detected, and when the vehicle speed exceeds a first speed threshold, adding a predefined speed hysteresis factor to the first and second thresholds until the vehicle speed drops below a second speed threshold; correlating edge changes in at least two of the first, second, and third channels; and changing the on/off state of the vehicle lights in dependence on the correlation, wherein the second threshold is equal to the first threshold plus a hysteresis factor. determining a speed of the vehicle, providing a light sensor, wherein a capacitive light sensor configured to sense a presence and intensity of light over three wavelengths, each said wavelength being respectively associated with first, second, and third output channels of the light sensor; filling a buffer with data from the output channels, the buffer being filled with a predetermined number of data points at a predetermined frequency; the method being characterized by further comprising: detecting an edge change in the data in the buffer, wherein the edge change is detected, when the data passes from a high value to a low value through a first predefined threshold, and/or when the data passes from a low value to a high value through a second predefined threshold; maintaining an on/off state of the vehicle lights when an edge change is not detected, and when the vehicle speed exceeds a first speed threshold, adding a predefined speed hysteresis factor to the first and second thresholds until the vehicle speed drops below a second speed threshold; correlating edge changes in at least two of the first, second, and third channels; and changing the on/off state of the vehicle lights in dependence on the correlation, wherein the second threshold is equal to the first threshold plus a hysteresis factor. detecting an edge change in the data in the buffer, wherein the edge change is detected, when the data passes from a high value to a low value through a first predefined threshold, and/or when the data passes from a low value to a high value through a second predefined threshold; maintaining an on/off state of the vehicle lights when an edge change is not detected, and when the vehicle speed exceeds a first speed threshold, adding a predefined speed hysteresis factor to the first and second thresholds until the vehicle speed drops below a second speed threshold; correlating edge changes in at least two of the first, second, and third channels; and changing the on/off state of the vehicle lights in dependence on the correlation, wherein the second threshold is equal to the first threshold plus a hysteresis factor.