51-based temperature detection program