With the fast increase of wireless technology, more new applications are developed targeting smart cities. It is clear that soon-to-be, each city will be covered with wireless capabilities besides the 5G cellular technology. In a modern city, the bus riders find themselves waiting for a significant amount of time for a bus while checking their smartphones. It is essential to use the numerous amount of data that can be gathered from these devices and surrounding to serve a better quality for the transportation system while preserving the ridership privacy.As to improve the quality of monitoring the transit buses system, we develop a framework using the Internet of Things (IoT) devices. In this paper, a framework is formed, and two case studies are investigated with various implementations. The goal is to use this framework to collect any data that can be used in smart cities to improve planning and increasing bus ridership through better scheduling. A complete comparison between the two case studies is provided with the performance measurement of each technique, and a hybrid methodology is suggested.