High and low temperature detection