Early-warning tool to prevent stockpile fires