The invention discloses a control method and a temperature detection method of a refrigerator. The temperature detection method of the refrigerator comprises the steps as follows: a temperature sensor is sampled for N times through a controller, N sampling values are acquired, and the N is larger than or equal to 3; and the N sampling values are converted into AD values through an AD module of the controller respectively, a maximum value and a minimum value of the N AD values are removed, then an mean value is calculated, and the temperature of a refrigeration chamber is acquired according to the mean average. According to the temperature detection method of the refrigerator, the accuracy of a detection result is improved, the refrigerator can be controlled and used conveniently, the energy consumption of the refrigerator is reduced, energy is saved, and the environment is protected. Besides, a working temperature range of the refrigerator is referred to, a universal circuit is designed, the portability is good, and the methods can be popularized and applied to a whole series of refrigerators conveniently, and the program development period is accelerated greatly.