Low levels of light are detected by the retina and send an impulse to the brain. This is detected when the impulse passes over the optic chiasm, which sends an impulse to the SCN, which activates the pineal gland and produces melatonin. This produces serotonin which causes sleepiness and entrains the biological clock to the environment.