Foam accumulates on the surface of 'dal' kept for a long time in summer.
When lentils or dal kept out in summer it becomes hot due to the temperature as the temp get increased , chemical called as saponins come out of dal tissues which have a similar properties that of soap causing foaming of water