Mechanisms for plants detecting the optimum time and place to germinate