An Innovative Smart System based on IoT Technologies for Fire and Danger Situations