Got it sending the events better (changed sensorchanged trigger)