Multi-point temperature detection system design (with code)