Smart cities and IOT for sustainability