What sensor would you use to track how much liquid is left in a bottle?

Liquid left in bottle is bottle capacity minus removed content, but since you only want to know what is in bottle you don't need to know its capacity

Weigh bottle when empty We

Weigh bottle when part full Wp

Liquid in bottle Wl = (Wp - We)

So use a weigh scale as your primary measurement device

If you want volume you need to know liquid density