The Thermostat
I once took apart an old thermostat.
It was a very simple device with mercury held in a glass tube.
Mercury changes density very easily.
That is why it is used for thermostats.
I put the thermostat back together when I was done.