Take the yellow lentils in a bowl and rinse 3 to 4 times in clean water.
Now heat oil with cumin seeds in a pressure cooker over medium heat.
When the seeds start sizzling, add chopped onion and saute until it turns golden.
Then add chopped tomatoes and saute until soft.
After a minute, add turmeric powder, green chili, and salt. Saute all of them until the tomatoes are fully soft and the raw smell is gone.
When the tomato masala releases oil, add the yellow lentils with water.
Mix well, cover the cooker lid, or pressure cook on high heat for 3 to 4 whistles, then turn off the flame.
When the pressure drops, open the lid, and the lentils are fully soft.
Now heat ghee in a small pan with all the ingredients mentioned in the tadka section.
Saute all of them until the chilies crackle.
When it's done, pour it over hot cooked dal.
Serve it hot with roti or rice.