Stop logging on every sensor triggered by light sensor event

Hi,
I'm quite new here. On my Android API, at the moment I'd like to stop the recording/logging on all the sensors based on an specific sensor event when illuminance sensor measurement is higher than a threshold. I'm tracking international transportations of big machines on their crates. I'd like that the sensor finishes recording and creates the session when customer opens the packaging (darkness vs sudden event of a possitive lux delta of illuminance) Is there any example code for me to use as a model.

Thank you in advance,
Alejandro

Comments

Sign In or Register to comment.