A method for controlling a streetlight that is provided to illuminate a portion of the street, the method being performed by a controlling device comprising a memory accessible by a processor which controls a steering module which steering module is operatively coupled to said streetlight.