using devices responsive to thermal changes or to thermal expansion of a medium