IoT (internet of things) is being used in “smart cities” to optimize resource and energy use, manage traffic better, and minimize pollution.