Connected and smart lighting for IoT