A Cost-Effective Thermal Imaging Safety Sensor for Industry 5.0 and Collaborative Robotics