This document proposes a machine learning framework to detect spam on IoT devices. It evaluates five machine learning models on a dataset of IoT device inputs and features to compute a "spamicity score" for each device. This score indicates how trustworthy a device is based on various parameters. Feature engineering techniques like principal component analysis and an entropy-based filter are used to select important features and reduce data dimensionality for the models. The results show this proposed technique can effectively detect spam compared to other existing approaches.