Banana Pi BPI M2 Zero Sleep and Wake

Can anyone tell me how to make the BPI M2 Zero go to sleep and wake up for a sensor application.

Thanks