Despite of automation and security in plants, industrial environment is still dangerous for humans and machines. This work deals with a safety in industrial condition. We designed and built a system to detect dangerous situations and help to avoid them. In our solution, we created a method to detect dangerous situations. We created safety scenes and situations to verify our algorithms, too. The first algorithm is designed to protect a human. This algorithm detects dangerous collisions of human and thermally dangerous areas. Our algorithm and experiments are based on thermal camera. We created a graphical interface to our method, which allows better configuration for more scenes. Reached result will be implemented in designed IoT gateway, to improve industrial implementation with scalability.