Updated temperature lookup table, refactored, added averaging to AD