Trigger switch with temperature

I wrote a thermostat app that could work. the one thermostat.