Boeing and Airbus aircraft measure volume inside the fuel tanks. Google “Aircraft FQMS”
I didn't see anything regarding the sensors themselves. I am sure the sensor system on flight TWA800 were intrinsically safe. People have known how to do that for a very long time.