A control device for controlling the light intensity of at least one lighting device operationally coupled to the control device comprising: - an input arranged for receiving, from a light sensor operationally coupled to the input, light level measurements; and - a controller (110, 210, 230) arranged for - determining, based on said light level measurements received via the input, whether the light sensor has been tampered with; - controlling, if it has been determined that the light sensor has been tampered with, the at least one lighting device according to a fallback mode comprising controlling the light intensity of the at least one lighting device based on a stored program accessible to the controller; - controlling, if it has been determined that the light sensor has not been tampered with, the at least one lighting device according to a daylight harvesting mode comprising controlling the light intensity of the at least one lighting device based on the at least one light level measurement; characterized in that the controller (110, 210, 230) is arranged for determining whether the light sensor has been tampered with based on any of: - comparing a first light level measurement to a second light level measurement of said light level measurements, wherein the second light level measurement is received via the input after the at least one lighting device has been controlled to either increase or decrease the light intensity, - comparing a first light level measurement to a second light level measurement of said light level measurements, wherein the second light level measurement is received via the input in a second time period, and wherein the first light level measurement is received via the input in a first time period; and wherein the end of the first time period and the start of the second time period are at least one minute apart. - an input arranged for receiving, from a light sensor operationally coupled to the input, light level measurements; and - a controller (110, 210, 230) arranged for - determining, based on said light level measurements received via the input, whether the light sensor has been tampered with; - controlling, if it has been determined that the light sensor has been tampered with, the at least one lighting device according to a fallback mode comprising controlling the light intensity of the at least one lighting device based on a stored program accessible to the controller; - controlling, if it has been determined that the light sensor has not been tampered with, the at least one lighting device according to a daylight harvesting mode comprising controlling the light intensity of the at least one lighting device based on the at least one light level measurement; - comparing a first light level measurement to a second light level measurement of said light level measurements, wherein the second light level measurement is received via the input after the at least one lighting device has been controlled to either increase or decrease the light intensity, - comparing a first light level measurement to a second light level measurement of said light level measurements, wherein the second light level measurement is received via the input in a second time period, and wherein the first light level measurement is received via the input in a first time period; and wherein the end of the first time period and the start of the second time period are at least one minute apart.