what function of pineal gland
The pineal gland produces melatonin, a hormone that modulates  wake/sleep patterns and sexual development. The pineal gland also  has other functions in the endocrine systemâ¦ including regulation of  that system. The pineal gland, located in the brain, produces the hormone  melatonin.