This video features a toilet "PLC".
Toilet cisterns feature an inlet valve. These valves are controlled by a float, and just like any controllers, can be expressed in a ladder diagram.
Inlet valves breakdown after a while. This video shows how the "controller" is replaced, and "programming" the quantity of flush water.