End mid loop() @ sensor input, how?