Lighting system, comprising at least one light source (100, 201, 710, 720, 730) and a sensor (101, 501), wherein the sensor (101, 501) comprises a wireless control module for creating and/or expanding a wireless network between the sensor (101, 501) and the at least one light source, wherein the at least one light source (100, 201, 710, 720, 730) comprises a wireless control module adapted for communicating with the wireless control module of the sensor (101, 501), wherein the sensor (101, 501) is adapted to operating in a sensing mode (602, 702), wherein in the sensing mode (602, 702), the sensor (101, 501) is adapted for detecting the presence of a light source (100, 201, 710, 720, 730), and, when a light source (100, 201, 710, 720, 730) is detected by the sensor (101, 501) in the sensing mode (602, 702), switching into a sensor pairing mode (603, 701) for pairing with the light source (100, 201, 710, 720, 730); characterized in that the at least one light source (100, 201, 710, 720, 730) is adapted to determining whether the light source (100, 201, 710, 720, 730) is in a factory default mode (32, 74) when the light source (100, 201, 710, 720, 730) is turned on and/or resetted, wherein if the at least one light source (100, 201, 710, 720, 730) is in the factory default mode (32, 74), the at least one light source (100, 201, 710, 720, 730) is adapted to switch into a light pairing mode (322, 713) for pairing with the sensor (101, 501), wherein in case of unsuccessful pairing between the sensor (101, 501) and the at least one light source (100, 201, 710, 720, 730), the at least one light source (100, 201, 710, 720, 730) is adapted to switch into a locked unpaired mode, wherein in the locked unpaired mode, the light source (100, 201, 710, 720, 730) does not enter the pairing mode (322, 713) again until it is turned-off and on again. wherein the at least one light source (100, 201, 710, 720, 730) comprises a wireless control module adapted for communicating with the wireless control module of the sensor (101, 501), wherein the sensor (101, 501) is adapted to operating in a sensing mode (602, 702), wherein in the sensing mode (602, 702), the sensor (101, 501) is adapted for detecting the presence of a light source (100, 201, 710, 720, 730), and, when a light source (100, 201, 710, 720, 730) is detected by the sensor (101, 501) in the sensing mode (602, 702), switching into a sensor pairing mode (603, 701) for pairing with the light source (100, 201, 710, 720, 730); characterized in that the at least one light source (100, 201, 710, 720, 730) is adapted to determining whether the light source (100, 201, 710, 720, 730) is in a factory default mode (32, 74) when the light source (100, 201, 710, 720, 730) is turned on and/or resetted, wherein if the at least one light source (100, 201, 710, 720, 730) is in the factory default mode (32, 74), the at least one light source (100, 201, 710, 720, 730) is adapted to switch into a light pairing mode (322, 713) for pairing with the sensor (101, 501), wherein in case of unsuccessful pairing between the sensor (101, 501) and the at least one light source (100, 201, 710, 720, 730), the at least one light source (100, 201, 710, 720, 730) is adapted to switch into a locked unpaired mode, wherein in the locked unpaired mode, the light source (100, 201, 710, 720, 730) does not enter the pairing mode (322, 713) again until it is turned-off and on again.