IoT and AI to manage social and environmental impact of construction