Internet of things (IoT) makes a machines optimization in everyday which processing the data by very intelligently and make communication more effectively and efficiently.However, in order to decrease the harm of IoT, nearby is angrowinglonging to move en route for green IoT which is environmentally friendly. In smart city environments, the data collection and communication play an important role in defining quality. Since the research period, it has been recommending a new data acquisition and data communication software framework for IoT smart applications. For further improvements, we recommend an optimal QoS aware routing technique for smart cities using IoT enabled wireless sensor networks (OQR-SC). In data gathering phase, we introduce chaotic bird swarm optimization (CBSO) algorithm for IoT sensor cluster formation; the improved differential search (IDS) algorithm used to estimate the faith degree of each sensor node, the highest trust node act as cluster head (CH). In data transferring phase, we illustrates lightweight signcryption technique for data encryption between two IoT sensors. Then, we use optimal decision making (ODM) algorithm to compute the optimal path between source-destination in IoT platform. Finally, the proposed OQR-SC technique is implemented using network simulation (NS2) tool and analyzes the performance of proposed technique with existing state-of-art techniques.