The Internet of Things (IoT) is one of the technologies used in many fields today. Cyber attacks against IoT/Industrial IoT (IIoT) networks, which are increasingly used thanks to the convenience it provides, are constantly increasing. Detection of attacks against IoT/IIoT networks is one of the popular topics recently. The development of a dataset for IoT applications is essential for the intrusion detection in IoT networks. In this context, the ToN_IoT dataset created in the laboratory of UNSW Canberra (Australia) is one of the most comprehensive datasets that can be used to detect cyber attacks on IoT networks. In this study, fridge, garage door, GPS tracker, modbus, motion light, weather, thermostat datasets related to IoT sensors from ToN_IoT datasets were used. The datasets used were subjected to multi-class classification with the Light Gradient Boosting Machine (LGBM) classifier proposed in the study. The obtained results were compared with the literature and it was seen that the proposed method provided the highest classification performance in the literature. It has been determined that the proposed method is effective in preventing cyber attacks on IoT/IIoT networks.