Added function for getting the event source pointer of the sensors