A framework for air pollution monitoring in smart cities by using IoT and smart sensors