This paper's aim is to establish the relationship between Data Mining and the Internet of Things. Four models for data mining have been discussed indicating some challenges of the data for Internet of Things which are multi-layer model, distributed model, grid based model and big data model. The key issues about the models like collection of data, data abstraction and aggregation, event filtering etc. are also discussed. After reviewing the key issues, a new model has been proposed. In addition, a tweet sentiment analyzer project has been made on the concept of data mining using the python language.