A method of making soymilk using a soymilk maker (200, 300), said soymilk maker comprising: a container (201, 301), a grinding device (202), a heating device (203), a level sensor (204, 304) set at the upper part of said container for detecting the liquid level of the material in said container, and a water injection device (205, 305) for injecting water into said container which method comprises the steps of: a) grinding the material, and heating the material in said container (201, 301) by applying a first power b) during a preset period, performing a first detection using said level sensor (204, 304) and, if said level sensor is triggered by the foam generated in the process of making soymilk, heating the material in said container (201, 301) by applying a second power, said second power being lower than said first power c) after said first detection, performing a second detection by means of said level sensor (204, 304) after a predetermined time interval and, if said level sensor is triggered by the foam generated in the process of making soymilk, injecting water into said container, and heating the material in said container by applying said first power if the production time does not exceed said preset period, returning to step b) if the production time is equal to or exceeds said preset period, heating the material in said container by applying a third power. The method performs detections before and after said predetermined time interval respectively a procedure for determining and eliminating “false” triggering is in place under secure