Added tracing for sensor events.