if Hinduism has so many gods, how do you know which ones to worship? The point is that the devas affect all levels of universal activities, including the weather, or who is bestowed with particular opulences such as riches, beautiful wife or husband, large family, good health, etc. For example, one could worship Agni for getting power, Durgadevi for good fortune, Indra for good sex life or plenty of rain, or the Vasus for getting money. Such instruction is in thekarma-kanda section of the Vedas which many people considered to be the most important part of Vedic knowledge. This is for helping people acquire the facilities for living a basic material existence.
However, another view of the Vedic gods is that they represent different aspects of understanding ourselves, especially through the path of yoga and meditation. For example, the god of wind is Vayu, and is related to the practice of yoga as the breath and its control in pranayama. Agni is the god of fire and relates to the fire of consciousness or awareness. Soma relates to the bliss in the samadhi of yoga practice. Many of the Vedic gods also represent particular powers of yoga and are related to the different chakras in the subtle body. It is accepted that as a person raises his or her consciousness through the chakras, he or she will attain the level of awareness and the power and assistance that is associated with the particular divine personality related to that chakra.
In Bhagavad-gita (3.10-12). It is stated that in the beginning the Lord of all beings created men and demigods along with the sacrifices to Lord Vishnu that were to be performed. The Lord blessed them saying that these sacrifices will enable men to prosper and attain all desirable things. By these sacrificial duties the demigods will be pleased and the demigods will also please you with all the necessities of life, and prosperity will spread to all. But he who enjoys what is given by the demigods without offering them in return is a thief.
The Rig-veda (1.22.20) explains: “The demigods are always looking to that supreme abode of Vishnu.” Bhagavad-gita (17.23) also points out: “From the beginning of creation, the three syllables om tat sat have been used to indicate the Supreme Absolute Truth (Brahman). They were uttered by brahmanas while chanting the Vedic hymns and during sacrifices, for the satisfaction of the Supreme.” In this way, by uttering om tat sat, which is stressed in Vedic texts, the performers of the rituals for worshiping the demigods were also offering obeisances to Lord Vishnu for its success. The four Vedas mainly deal with material elevation and since Lord Vishnu is the Lord of material liberation, most sacrifices were directed toward the demigods.
Krishna goes on to explain (in Bhagavad-gita 7.21-23) that when a person desires to worship a particular demigod for the temporary and limited fruits he or she may bestow, Krishna, as the Supersoul in everyone’s heart, makes that person’s faith in that demigod steady. But all the benefits given by any demigod actually are given by Krishna alone, for without whom no one has any power. The worshipers of the demigods go to the planets of the demigods, but worshipers of Krishna reach Krishna’s spiritual abode.
Thus, as one progresses in understanding, it is expected that they will gradually give up the pursuit for temporary material pleasures and then begin to endeavor for reaching the supreme goal of Vedic knowledge. For one who is situated in such knowledge and is self-realized, the prescribed duties in the Vedas for worshiping the demigods are unnecessary. As Bhagavad-gita (3.17-18) explains, for one who is fully self-realized, who is fully satiated in the self, delights only in the self, there is no duty or need to perform the prescribed duties found in the Vedas, because he has no purpose or material desires to fulfill.