Use integer comparison for temperature threshold control