The present invention relates to a method for making soymilk with a soymilk machine, said soymilk machine (200) comprising a level sensor (204) and a heating device (203), said method comprises steps: obtaining a measured value by said level sensor, said measured value being positively correlated with resistance between said level sensor and liquid in said soymilk machine; comparing said measured value with a first threshold when the temperature of said liquid is lower than a first preset temperature; comparing said measured value with a second threshold when the temperature of said liquid is higher than said first preset temperature; adjusting the power of said heating device if said measured value is lower than or equal to the first threshold when the temperature of said liquid is lower than the first preset temperature; adjusting the power of said heating 201 device if said measured value is lower than or equal to the second threshold when the temperature of said liquid is higher than the first preset temperature. The present invention also relates to a home soymilk machine corresponding to said method.