Edited what happens for a sensor trigger