How to access the member of union in loop?
I don't think you can.

The structures are defined within a function so the loop() won't have access to them.

Further the parameter returned from the function xbee_rx() is of type SENSOR_DATA which is a sibling in the frame structure to the data you want to read.