The pineal gland is a small endocrine gland in the brain of most vertebrates. It produces melatonin, a hormone which modulates sleep patterns. The shape of the gland resembles a pine cone from which it got its name. Chickens can sense the presence or absence of light through the pineal gland in their head, so even an entirely blind bird can still sense daylight or seasonal change.