Toliet time sensor?

The following thread might have some ideas you can use.

1 Like