Schematic diagram and C program of single chip temperature detection and recording system