This document describes a temperature-humidity controller with a fire detector. It controls temperature, humidity, and detects fires. The controller uses sensors to measure temperature, humidity, and detect fires. It then activates components like the AC, heater, windows to control the temperature and humidity. In case of a fire, it sounds an alarm and cuts off the gas supply. It has applications in places like hospitals, schools, hotels to control the indoor environment.