Building an indoor air quality monitoring system based on the architecture of the Internet of Things