You can use either red lentils or yellow split peas in the recipe.
I prefer red lentils as they cook really faster compared to yellow split peas.
If you want to use yellow split peas, soak them overnight, and then cook until they turn mushy. In that case, the cooking time will also increase.