Do plants know we're here?

Being in nature is supposed to be good for us, but are plants actually aware that we're around? Do trees enjoy being hugged or is it just humans who find it pleasurable?