The Sentience of Plants

Are plants simply mindless automatons, going through the motions of sprouting, growing, flowering, fruiting, re-seeding and dying?  Is this a basic process, requiring no thought of temperature, soil moisture, humidity, nutrients, pollinisation and reproduction?  Does it all just occur, coincidentally or, if the processes are somehow deliberate, is it simply nature being nature?