Without trying something similar yet, here are some ideas:
- motion sensor on top of your shower
- trying to detect the vibration of the water flow
- a simple switch that you hit before you get into the shower
Also think of other times you "use" the shower, like cleaning it. Some methods will also be triggered then.