Maybe I am missing something..
Do you want data sent at each sensor trigger?
Have the sensor on one of the pins currently used for a switch.