I like the idea of using a pressure sensor, but measuring the height of the fluid column above it is going to be a pain. If you use two, separated by a known distance, you can measure the difference in pressure between them to determine the specific gravity. A strain gauge attached to a weight...