Necessary preliminary work:
NOTE: For purposes of clarity, the following graphic shows the heater/air conditioner removed.
Remove temperature sensor (2) from air duct (1).
BMW X3 Owners Manual > Refueling: Fuel lid
Opening
1. Briefly press the rear edge of the fuel filler
flap.
2. Turn the tank lid counterclockwise.
3. Place the tank lid in the bracket attached to
the fuel filler flap.
Closing
1. Fit the lid and turn it clockwise until you
clearly hear a click.
2. Close the fuel filler flap.
...