A digital sensor to measure real-time leaf movements and detect abiotic stress in plants