Environmental stimulus perception and control of circadian clocks