To measure the level of salt in the water softener.
Use a Time of Flight distance sensor mounted in the lid. The salt blocks sink down as they are used.
Charlie Skilbeck